Questions tagged [move-uploaded-file]
30 questions
1
vote
1 answer
move_uploaded_file permission denied when there are sufficient permissions
I have a PHP script where I can upload a file and it will try to move it from /tmp to test/ (relative path which is in my project folder, for example /var/www/html/myproject/test would be the absolute path). When this happens I get the following…

Wild Droid
- 11
- 2
1
vote
0 answers
move_uploaded_file() is not storing my image file in the required destination folder
I have a folder called uploads inside my root directory (C:\xampp\htdocs). I am trying to implement the php function move_uploaded_file(), to store my image file inside that folder. This is my code:
$folder="/uploads";
try{
…
user18447340
1
vote
0 answers
move_uploaded_file() file not found with rutorrent php script
For practical reasons, I created a form to send torrent files without having to go through ruTorrent (not accessible from the internet while my form is).
I want to use ruTorrent's addtorrent.php script to launch the torrents in rTorrent. But I can't…

Antoine
- 55
- 9
0
votes
0 answers
if zip files are large like 500+MB then move_uploaded_file not working
Zip file is large then
if(move_uploaded_file($_FILES['file']['tmp_name'],$location)){ }
not working It no shows anything if file is not moved to directory.
I have also enabled in httaccess file, becuase I can not access php.ini file on my live…

Loveyatri
- 11
- 3
0
votes
0 answers
Symfony UploadedFile ($test) must be of type bool, null given
While Updating an image after cropping, I am getting the following error:
Symfony\Component\HttpFoundation\File\UploadedFile::__construct():
Argument #5 ($test) must be of type bool, null given
$croppedimage = $request->croppedimage;
…

Aashish Kumar Jaiswal
- 178
- 6
0
votes
0 answers
How to pass a php variable containing js script to a function?
I have a php variable $ext used to take value of a js variable fp
$nam = $_POST['subject'];
$ext = "";
I need to pass the variables into move_uploaded_file function like this
$x = 'uploads/' . $nam . "." .…

httpanand
- 216
- 2
- 17
0
votes
0 answers
File Upload after a pre-selection of sub-folder via dropdown menu
In this example, I'd like to realise a fileupload center where you could firstly choose a a output subfolder via a dropdown-select!
Second, you could choose a file which you want to uplaod via drag&drop function or browse-button and finally, you get…

B C
- 1
- 1
0
votes
1 answer
I can't figure out what is missing in my PHP-based upload program
I've successfully uploaded the mp3 file to the server (local), and I'm trying to move the file to the destination folder which is located in the /opt/lampp/htdocs folder and folder name is songs. But the file is not being moved to the folder.
This…

Haider Ali
- 1
- 1
0
votes
1 answer
move_upload_file() is not uploading images inside directory?
I am using codeigniter-3 framework , i am getting file from the request i want to store that image inside the particular folder for that i am using move_upload_file() but it's not working can you please help me did i miss anything ..?
…

sai sa
- 171
- 1
- 5
0
votes
1 answer
Cannot move_uploaded_file to /tmp
Here my code of uploads.php:

Mark
- 4,338
- 7
- 58
- 120
0
votes
1 answer
Why on submitting form with image as file, my $_FILES array returns Array() empty array and my image is not stored on desired folder after submit
I have almost filled up this signup form 30 times in a day debugging this and still the image is not reaching to the destination folder as it should.
This code is present in htdocs/Email/signup.php and uploaded file should be moved to…

Advait Trivedi
- 11
- 1
- 5
0
votes
1 answer
move_uploaded_file Failed to open stream: Permission denied in XAMPP MacOS
I was trying to upload a file using php to my local using XAMPP on MacOS. Whenever I tried to upload a file through script, I got thi error.
move_uploaded_file - Failed to open stream: Permission denied
So I tried some fixes I saw on internet,…

John Smith
- 33
- 7
0
votes
0 answers
php - html: On upload, replace file with the same name if the user wants, else just keep the old one
First of all i am a beginner and idk if the following code is a proper way to do what i want but this is how i think i could do this (using forms to pass some values).
So, i use the following code to let the user choose if he wants to delete a file…

Scissors38th
- 127
- 10
0
votes
0 answers
Changes in PHP.ini dosent reflect in phpinfo()
I have a problem that I can't seem to fix. I would really appriciate any help!
I am trying to make a script to upload files using the function move_uploaded_file, and it dosent work.
So I tried to change php.ini but theses changes dosent reflect in…
0
votes
0 answers
PHP move_uploaded_file() doesn't upload .zip of 3MB to server
I try to upload a file with PHP and I use the function "move_uploaded_file()" for it. Everything works well, until I try to upload a zipped CSV file. The file itself is 50MB, but once it is zipped, it's just 3MB. I can upload files until 5MB to the…

Antonio
- 133
- 1
- 11