I have a website where users can upload images to my hosting Apache/PHP server. If files uploading lasts less than 20 sec everything is fine. But if it lasts more (no matter what image filesize is), …
Tag: upload
$_FILES key used for building a PSR-7 uploaded files list
The short version: When a user uploads a file using a form, an array is saved in the global variable $_FILES. For example, when using: the global …
Laravel – store() method suddenly not working
I have a file upload method for a single image working properly, using the following code: $file = $request->file(‘file’); if ($file && $file->isValid()) { $photo[‘size’] = $…
WordPress – Blur Image on Upload
So I’m following the example given here (which I modified to only blur, no watermark), to make a blurred image in WordPress on upload. The problem is, that if the uploaded file is the exact same size, or smaller, than the set size, then WordPress will not generate an image, and hence no blurred one will be made. I tried
CodeIgniter Multiple File Upload not working
I am trying upload multiple file in a folder but it’s giving the error “You did not select a file to upload.” A PHP Error was encountered Severity: Warning Message: is_uploaded_file() expects parameter 1 to be string, array given Filename: libraries/Upload.php Line Number: 412 Backtrace: File: C:wampwwwmshaadiapplicationcontrollersEmail.php Line: 55 Function: do_upload File: C:wampwwwmshaadiindex.php Line: 293 Function: require_once Controller view Answer
How to keep the previous uploaded image (in db) after submitting a form without selecting a new image to be uploaded
I have a simple form for creating an article: Title,image,category,body , etc.. My problem is with the image input. Selecting a new one and submitting everything works fine: the image is being uploaded to the server the title of the image is being saved to db and i can print it in the article. By editing the whole form, filling
Uploading videos to a specific PREDETERMINED account with YouTube API v3
I have a website on which clients will be uploading videos. The thing is – I want those videos to be uploaded to OUR channel, not users’ channels. I don’t see how I could make it work using YouTube API v3. Every time a person wants to upload something using the access token I provided he has to input his
move_uploaded_file() Unable to move file from tmp to dir
I’ve been searching for the solution but I can’t find the answer. I created a image upload form. It runs with ajaxform plugin. But still it doesn’t upload to the directory. The error_log says move_uploaded_file() Unable to move file from [tmp] to [dir]. Then on the front end it says Upload Complete. But when the file is called, it doesn’t
Secure image upload in php
I am making an image upload function which I can re-use in my code, which has to be 100% secure. Please tell me if you can spot and security holes in my initial code; UPDATE This is how far I’ve gotten with your help and some research, please tell me what you think. I don’t mind much about the speed,
File upload PHP JPG issues
I’m getting confused while working with an file upload HTML form and some PHP to handle the input. In the form i have two file selects for images. When uploading an .png file i can get the file size etc using $_FILES. But when i’m trying to upload an .jpg file, i can’t get more then the filename, no size,