Mp3 / Mp4 Php Upload Doesn't Work
I really despair at this problem. I already found some other threads that consider about this problem, but I don't found a solution for me. I want to upload a mp3 / mp4 file. But w
Solution 1:
I think your mp3,mp4 file too large, you can check Maximum allowed size for uploaded file
in php.ini, default you can upload file with 2Mb, change upload_max_filesize
and restart your server
Solution 2:
Use the following:
vardata = new FormData();
jQuery.each(jQuery('#file')[0].files, function(i, file) {
data.append('file-'+i, file);
});
jQuery.ajax({
url: 'upload.php',
data: data,
cache: false,
contentType: false,
processData: false,
type: 'POST',
success: function(data){
alert(data);
}
});
Post a Comment for "Mp3 / Mp4 Php Upload Doesn't Work"