Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#20 should check for too big error code in mp3 upload

open
nobody
demo (2)
5
2007-03-13
2007-03-13
Olivier Berger
No

In the api_demo/index.php, it would be great to check $_FILES['fileData']['error'],'error' before using tmp_name of the uploaded file, as if it's too big (quite easy with a MP3), it won't be usable.

Checking the error (for example 1 : UPLOAD_ERR_INI_SIZE, see http://fr3.php.net/manual/fr/features.file-upload.errors.php\) could solve the issue.

Best regards,

Discussion