I have using the example from the docs.
Parse.Cloud.afterSaveFile(async (request) => {
const { file, fileSize, user } = request;
const fileObject = new Parse.Object('FileObject');
fileObject.set('file', file);
fileObject.set('fileSize', fileSize);
fileObject.set('createdBy', user);
const token = { sessionToken: user.getSessionToken() };
await fileObject.save(null, token);
});
How do I get the name and url of the saved file?