All Questions
Tagged with php-ini file-upload
19
questions
0
votes
2answers
34 views
PHP move_uploaded_file results in error #1
I try to upload a file to an external server based on this code: https://www.w3schools.com/php/php_file_upload.asp .
On my local machine everything works fine but when uploading the exact same script ...
0
votes
2answers
69 views
Php multiple image upload fails when i select many images
I use this code below, to upload and resize multiple images.
If i select about 10-20 image, everything works fine, but if i select 50 or more images, nothing happens, the page just reloads after a ...
1
vote
1answer
50 views
Different downloaded file depending on the server
I use this code with Symfony 2.8:
protected function getFiles(FileBag $bag)
{
$files = array();
$fileBag = $bag->all();
dump($fileBag);
....
}
In my dev environnement (Ubuntu 16....
0
votes
1answer
567 views
cannot upload large files in wamp server [duplicate]
I have created a file which will upload file to wamp server. Code for html and php files are below.
<form action="uploadToServer.php" method="post" enctype="multipart/form-data">
Select image ...
1
vote
1answer
1k views
cant upload large files
I have a simple script for uploading video. it works fine with 16mb of file but larger file than that are not being uploaded. I'm using it on xampp localhost.
I have tried changing value on ...
0
votes
2answers
650 views
WordPress - Increasing max upload size does not work
I have a WordPress Network-Site (with currently one page). The big problem is, that the max upload size for media is limited to 1MB inside WordPress.
None of my attempts increasing this limit have ...
0
votes
0answers
123 views
Syntax to edit post_max_size value in php.ini with Terminal?
I am attempting to use Terminal on Mac to edit the post_max_size and upload_max_filesize values in my file. I thought of typing something like post_max_size = 50M into Terminal, but I'm not sure.
...
0
votes
1answer
696 views
Unable to upload more than 10 files at a time
I am uploading the multiple images in codeigniter when I try to upload more than 10 images it shows blank screen without any error but same code worked when I upload the 10 or less than 10 images. I ...
1
vote
2answers
9k views
upload file to web server error 6 php
I am trying to upload a file from a php form.It wont work on linux server. I want it to move it to a subdir '/uploads' from where the file is.
I get the below error when executing the page by echo ...
1
vote
0answers
363 views
How to detect php's file-upload error when $_FILES is empty
I try to upload files (by silex). because I was limited post's content-length in httpd-conf file:
php_value upload_max_filesize 1M
php value post_max_size 10M
When I try to upload files, larger than ...
0
votes
1answer
2k views
HTML form file not uploading
I have an HTML form as the following:
<form id="addTrack" action="/worship/script/upload.php" method="post" enctype="multipart/form-data">
<label>File:</label>
<input ...
0
votes
0answers
274 views
move_uploaded_file not working although my file has been uploaded correctly
I'm stuck with a strange bug which I can't understand. Here's the background :
I set up a form to upload video files whose size can vary from 2M up to 6G. The file is uploaded then moved via ...
0
votes
1answer
689 views
Optimaze php 'upload_max_filesize' and 'post_max_size' setting
I set the "upload_max_filesize=1024M" and "post_max_size=1024M" in php.ini.
I found a problem when I upload a big size file (2048M) via web browser.
The file was still uploading, while I can see the ...
1
vote
1answer
2k views
How To Increase Maximum File Upload Size (PHP)?
I am running a XAMPP server on my computer. The maximum file size I've uploaded is 24.3kb. My server fails to upload a 78kb file. I know because I get an empty $_FILES['file']['tmp_name'] and an error ...
2
votes
4answers
16k views
Config php ini file for upload files
I have a page for upload files, In .htaccess file I have this:
php_value upload_max_filesize 40M
php_value post_max_size 40M
I have an img, with size 1.6 MB. When I am trying to upload this image, I ...
0
votes
2answers
839 views
Php file uploading warning message
I need to upload a video file. Here's my code
if(($_FILES["file"]["type"]=="application/octet-stream") || ($_FILES["file"]["type"]=="video/x-ms-wmv"))
{
if($_FILES["file"]["error"] ...
-2
votes
1answer
2k views
How to reduce the file upload time? [closed]
I need to upload large size video files. I've set the maximum file upload preferences. Ive set the following preferences:
memory_limit :150M
upload_max_filesize :120M
post_max_size :120M ...
4
votes
1answer
11k views
php file upload error of 1 - What is correct way to use php_ini?
I'm having issues uploading a pdf to my server. The upload_max_filesize is 2M and the file(s) are more then that, around 4M. I found a post with a similar issue to mine here
$_FILE upload large ...
3
votes
1answer
214 views
Best approach for speedy debug and efficiently fixing large image files upload failure
Consider a normal PHP image upload functionality (not using AJAX) and there occurs this problem of large image upload failing occasionally - less frequently on one test server and more frequently on ...