Chrisj Posted June 9, 2021 Share Posted June 9, 2021 This upload code is used for uploading a video file from html page, after recording via html5 screen <video></video>, however, ther file doesn't arrive in the uploads/ folder: <?php foreach (array('video', 'audio') as $type) { if (isset($_FILES["${type}-blob"])) { $fileName = $_POST["${type}-filename"]; $uploadDirectory = 'uploads/' .rand(5,500).$fileName; if (!move_uploaded_file($_FILES["${type}-blob"]["tmp_name"], $uploadDirectory)) { echo (" problem moving uploaded file"); } } } when uploaded from iPhone. So, I don't know how to see errors on iPhone. Folder permission is 755. php.ini max file size is 2024M, any ideas/solutions are appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/312885-upload-file-doesnt-arrive-into-uploads-folder/ Share on other sites More sharing options...
mac_gyver Posted June 9, 2021 Share Posted June 9, 2021 see the following link on how you can log what the $_FILES array actually contains and what your post method form processing code should do - https://forums.phpfreaks.com/topic/312874-cant-access-_files-after-form-submission/?do=findComment&comment=1587078 Quote Link to comment https://forums.phpfreaks.com/topic/312885-upload-file-doesnt-arrive-into-uploads-folder/#findComment-1587127 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.