Hi,
I want to edit the demo to allow large file uploads specifically for video uploads to S3. I've installed the demo, changed folder permissions (777 - ugh), and have been able to upload images <1MB without error. I tried images <2MB, the file uploads, but I receive the following error SyntaxError: JSON.parse: unexpected character. I tried to modify the js/main.js file to change the upload settings (demo is set to 5MB or less) here are the edits I made (I'll leave out the whole file).
...
if (window.location.hostname === '
blueimp.github.com') {
// Demo settings:
$('#fileupload').fileupload('option', {
url: '//
jquery-file-upload.appspot.com/',
//maxFileSize: 5000000,
//acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
maxFileSize: 5000000000,
acceptFileTypes: /(\.|\/)(gif|jpe?g|png|mp4|mov)$/i,
process: [
{
action: 'load',
//fileTypes: /^image\/(gif|jpeg|png)$/,
//maxFileSize: 20000000 // 20MB
fileTypes: /^image\/(gif|jpeg|png|mp4|mov)$/,
maxFileSize: 5000000000 // 5000MB
},
{
action: 'resize',
maxWidth: 1440,
maxHeight: 900
},
{
action: 'save'
}
]
});
....
I then tried to upload a 60MB video (max file size set to 5,000,000,000 = 5GB above) but I still get the same issues, files under 1MB upload, 1.5MB uploads but with JSON.parse error message, and 60MB does not upload and has JSON.parse error message.
Any assistance is greatly appreciated.
Regards,
John