I've been uploading files to the amazon s3 using the javascript library filepicker.io and the implementation works ok, the problem I'm facing now is that when users upload files with white spaces or fancy characters those files are not accessible through http, i was wondering if there is any way to apply some kind of renaming to the file prior the uploading face.
I'm using the pickAndStore method from the filepicker.io api
filepicker.pickAndStore({
mimetype: ['video/*'],
services:['COMPUTER', 'DROPBOX', 'GOOGLE_DRIVE', 'BOX', 'URL', 'VIDEO', 'FTP'],
},{location: 's3'},function(fpfiles){
fpfile = fpfiles[0];
$('#temp_file_url').val('/' + fpfile.key);
});
Thanks.