using parse.com's JavaScript SDK, I have successfully uploaded two media items and gotten the upload url back from the Parse.File object:
For example:
however when I try to retrieve those files by setting the src="", I get:
Failed to load resource: the server responded with a status of 416 (Requested Range Not Satisfiable)
any ideas why this would be?
The documentation suggests using
Parse.Cloud.httpRequest({ url: profilePhoto.url() }).then(function(response) {
// The file contents are in response.buffer.
});
but "httpRequest" is undefined in the 'Parse' object.
Any help would be greatly appreciated.
little late, but hope I can still help. Use this:
var audioFile = myParseObject.get('ColumnNameWithAudioFile');
var audio = new Audio(audioFile.url());
audio.play();
Works for me!