My question is very similar to this post "storing multiple ParseFile objects in single ParseObject", but can't resolve it on my own
ParseObject pObject = new ParseObject();
ArrayList<ParseFile> pFileList = new ArrayList<ParseFile>();
for (String thumbPath : thumbList) {
byte[] imgData = convertFileToByteArray(thumbPath);
ParseFile pFile = new ParseFile("mediaFiles",imgData);
pFileList.add(pFile);
}
pObject.addAll("mediaFiles", pFileList);
pObject.saveEventually();
And Hector Ramos answered the question:Try uploading the ParseFiles using the save method before associating them with the Parse Object.
Can anyone tell me how to change this piece of code? appreciate any kindly help.