Re: [PHP] Can´t upload files bigger than 50KB
if i'm not in mistake u can go 2 php.ini n fix it On Fri, Mar 18, 2011 at 6:24 PM, Gotzon Astondoa wrote: > I could not find the solution to the problem. > I've finally solved by using an applet that uploads the files by FTP. > In case anyone needs it, the applet I've used is > http://sourceforge.net/projects/zupload > For me it was the solution! > > 2011/3/9 Jim Lucas > >> On 3/9/2011 6:28 AM, Gotzon Astondoa wrote: >> > Hi all: >> > >> > On my website I have an Ajax form. From this form user can upload files. >> >> My guess would be that you have an HTML form. Not AJAX >> >> > Server side is a PHP script. >> > This form works properly on my development server. >> >> Is this on localhost or is it remote too? >> >> > But when I uploaded my application to the definitive server I discovered >> > that I can only upload files less than 50KB (It works perfectly with 1 to >> 20 >> > KB images). >> >> Silly question, how long does it take for these 1 to 20 KB files to upload? >> >> > These are the data from the server configuration that I believe can >> affect: >> > >> > post_max_size 8M >> > upload_max_filesize 2M >> > memory_limit 128M >> > safe_mode off >> > SELinux disabled >> > open_basedir none >> > >> > I´m now making tests with 52KB image: image.jpg >> > I discovered that the uploaded file is uploaded to /tmp. This file name >> is >> > php10tfTp. >> >> how much space is free on the partition that contains /tmp ? >> >> > But the file is not completely uploaded! So, my PHP script is not fired! >> > The original image size is 52KB and the new file size is 35KB . I >> download >> > the tmp file and rename it to php10tfTp.jpg. I can see that half frame is >> > the same as the original and the other half is gray. >> > >> > Any idea what is happening? >> > >> > Thanks in advance. >> > >> >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can´t upload files bigger than 50KB
I could not find the solution to the problem. I've finally solved by using an applet that uploads the files by FTP. In case anyone needs it, the applet I've used is http://sourceforge.net/projects/zupload For me it was the solution! 2011/3/9 Jim Lucas > On 3/9/2011 6:28 AM, Gotzon Astondoa wrote: > > Hi all: > > > > On my website I have an Ajax form. From this form user can upload files. > > My guess would be that you have an HTML form. Not AJAX > > > Server side is a PHP script. > > This form works properly on my development server. > > Is this on localhost or is it remote too? > > > But when I uploaded my application to the definitive server I discovered > > that I can only upload files less than 50KB (It works perfectly with 1 to > 20 > > KB images). > > Silly question, how long does it take for these 1 to 20 KB files to upload? > > > These are the data from the server configuration that I believe can > affect: > > > > post_max_size 8M > > upload_max_filesize 2M > > memory_limit 128M > > safe_mode off > > SELinux disabled > > open_basedir none > > > > I´m now making tests with 52KB image: image.jpg > > I discovered that the uploaded file is uploaded to /tmp. This file name > is > > php10tfTp. > > how much space is free on the partition that contains /tmp ? > > > But the file is not completely uploaded! So, my PHP script is not fired! > > The original image size is 52KB and the new file size is 35KB . I > download > > the tmp file and rename it to php10tfTp.jpg. I can see that half frame is > > the same as the original and the other half is gray. > > > > Any idea what is happening? > > > > Thanks in advance. > > > >
Re: [PHP] Can´t upload files bigger than 50KB
Hi Adam: I don´t understand well your point. I do some time tests (production environment) uploading files from 1KB to 47 KB, in all of the cases the time is the same (more or less), about 4,5 seconds. The magic size is 48KB, can´t upload files bigger that this :-( 2011/3/9 Adam Richardson > Hi Gotzon, > > I'm wondering if your javascript is timing out. On the development server, > is everything local so it's happening close to instantly? If so, it's > possible that the latency of your production environment is causing the > issue, as it's taking longer to process the request than the ajax script > has > allotted. That could explain why a 20K upload would work and a 50K isn't. > 50K isn't that big, but if the timeout was set to one or two seconds, I > suppose it's possible. > > Adam > > On Wed, Mar 9, 2011 at 10:02 AM, Gotzon Astondoa >wrote: > > > Upload form is OK, I can upload 5MB files in development server. > > > > 2011/3/9 Jay Blanchard > > > > > [snip] > > > 50KB > > > [/snip] > > > > > > Have you checked the upload form itself for max_file_size? > > > > > > > > > -- > Nephtali: A simple, flexible, fast, and security-focused PHP framework > http://nephtaliproject.com >
Re: [PHP] Can´t upload files bigger than 50KB
On 3/9/2011 6:28 AM, Gotzon Astondoa wrote: > Hi all: > > On my website I have an Ajax form. From this form user can upload files. My guess would be that you have an HTML form. Not AJAX > Server side is a PHP script. > This form works properly on my development server. Is this on localhost or is it remote too? > But when I uploaded my application to the definitive server I discovered > that I can only upload files less than 50KB (It works perfectly with 1 to 20 > KB images). Silly question, how long does it take for these 1 to 20 KB files to upload? > These are the data from the server configuration that I believe can affect: > > post_max_size 8M > upload_max_filesize 2M > memory_limit 128M > safe_mode off > SELinux disabled > open_basedir none > > I´m now making tests with 52KB image: image.jpg > I discovered that the uploaded file is uploaded to /tmp. This file name is > php10tfTp. how much space is free on the partition that contains /tmp ? > But the file is not completely uploaded! So, my PHP script is not fired! > The original image size is 52KB and the new file size is 35KB . I download > the tmp file and rename it to php10tfTp.jpg. I can see that half frame is > the same as the original and the other half is gray. > > Any idea what is happening? > > Thanks in advance. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can´t upload files bigger than 50KB
Thank you for your interest Lucas. 2011/3/9 Jim Lucas > On 3/9/2011 6:28 AM, Gotzon Astondoa wrote: > > Hi all: > > > > On my website I have an Ajax form. From this form user can upload files. > > My guess would be that you have an HTML form. Not AJAX > OK. The code is http://www.phpletter.com/Demo/Tinymce-Ajax-File-Manager/ > > > Server side is a PHP script. > > This form works properly on my development server. > > Is this on localhost or is it remote too? > Development is local, production is remote. > > > But when I uploaded my application to the definitive server I discovered > > that I can only upload files less than 50KB (It works perfectly with 1 to > 20 > > KB images). > > Silly question, how long does it take for these 1 to 20 KB files to upload? > > In all of the cases the time is the same (more or less), about 4,5 seconds. I also do a test with a 35KB image and the time is the same, about 4,5 seconds > > These are the data from the server configuration that I believe can > affect: > > > > post_max_size 8M > > upload_max_filesize 2M > > memory_limit 128M > > safe_mode off > > SELinux disabled > > open_basedir none > > > > I´m now making tests with 52KB image: image.jpg > > I discovered that the uploaded file is uploaded to /tmp. This file name > is > > php10tfTp. > > how much space is free on the partition that contains /tmp ? > About 16 GB > > But the file is not completely uploaded! So, my PHP script is not fired! > > The original image size is 52KB and the new file size is 35KB . I > download > > the tmp file and rename it to php10tfTp.jpg. I can see that half frame is > > the same as the original and the other half is gray. > > > > Any idea what is happening? > > > > Thanks in advance. > > > >
Re: [PHP] Can´t upload files bigger than 50KB
Hi Gotzon, I'm wondering if your javascript is timing out. On the development server, is everything local so it's happening close to instantly? If so, it's possible that the latency of your production environment is causing the issue, as it's taking longer to process the request than the ajax script has allotted. That could explain why a 20K upload would work and a 50K isn't. 50K isn't that big, but if the timeout was set to one or two seconds, I suppose it's possible. Adam On Wed, Mar 9, 2011 at 10:02 AM, Gotzon Astondoa wrote: > Upload form is OK, I can upload 5MB files in development server. > > 2011/3/9 Jay Blanchard > > > [snip] > > 50KB > > [/snip] > > > > Have you checked the upload form itself for max_file_size? > > > -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com
Re: [PHP] Can´t upload files bigger than 50KB
Upload form is OK, I can upload 5MB files in development server. 2011/3/9 Jay Blanchard > [snip] > 50KB > [/snip] > > Have you checked the upload form itself for max_file_size? >
RE: [PHP] Can´t upload files bigger than 50KB
[snip] 50KB [/snip] Have you checked the upload form itself for max_file_size? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can´t upload files bigger than 50KB
Hi all: On my website I have an Ajax form. From this form user can upload files. Server side is a PHP script. This form works properly on my development server. But when I uploaded my application to the definitive server I discovered that I can only upload files less than 50KB (It works perfectly with 1 to 20 KB images). These are the data from the server configuration that I believe can affect: post_max_size 8M upload_max_filesize 2M memory_limit 128M safe_mode off SELinux disabled open_basedir none I´m now making tests with 52KB image: image.jpg I discovered that the uploaded file is uploaded to /tmp. This file name is php10tfTp. But the file is not completely uploaded! So, my PHP script is not fired! The original image size is 52KB and the new file size is 35KB . I download the tmp file and rename it to php10tfTp.jpg. I can see that half frame is the same as the original and the other half is gray. Any idea what is happening? Thanks in advance.