Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
paul  
#1 Posted : Saturday, March 20, 2004 7:02:00 PM(UTC)
paul

Rank: Member

Groups: Member
Joined: 12/16/2003(UTC)
Posts: 13

Hello Andrew and all the other guys from Aurigma !

After testing and testing Image Uploader v1.8.2.7, I found out a strange behaviour :

First of all, I modified the Upload.php script on the server side to fit my needs. It creates
Thumbnails, backup original files and creates some other stuff.

When uploading a lot of files (25 MB per total), the Upload script takes some time
to finish all the tasks. Ater more or less 30 seconds, I got an error message :
"Error Response Received"

BUT, everything is fine on the server, all the uploaded images are there and all
the tasks from Upload.php script are completed.

It looks like a timeout problem.

I did several tests. Below 25 seconds or so, no error message. After 25 seconds, error message.


Some ideas ?

Thank you and have a nice day.
Paul

Edited by user Friday, November 26, 2010 11:43:09 PM(UTC)  | Reason: Not specified

Andrew  
#2 Posted : Sunday, March 21, 2004 2:07:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
There can be several reasons:
  1. Max upload size limit specified in server settings is exceeded.
  2. Timeout specified in server settings expired.
  3. Timeout specified by expired (unlikely).
So first of all, check upload limitations in php settings. This problem was already discussed here:

View post

Please post a message here if you resolve this problem.
Andrew  
#3 Posted : Sunday, March 21, 2004 2:11:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
Oh, I just realized that you was an author of that post. :) So it is likely the problem is not in exceeding of max upload size.

But anyway, try to search for execution timeout settings for scripts in php settings. At least ASP and ASP.NET provide ones.
paul  
#4 Posted : Sunday, March 21, 2004 5:29:00 PM(UTC)
paul

Rank: Member

Groups: Member
Joined: 12/16/2003(UTC)
Posts: 13

Andrew,

problem solved :)

It was unlikely but it was the (30 seconds)
I changed that to (10 minutes) and it works.

Previously, I checked the max upload size and the php timeout settings.
For Linux users, the PHP timetout settings can be changed in :

/etc/php.ini file :
safe_mode = Off
max_execution_time = 600; Maximum execution time of each script, in seconds (default 30)

You can also manually specify the timeout for each script, calling the next procedure inside
the script :
set_time_limit(600); //in seconds

Regards,
Paul
tush  
#5 Posted : Tuesday, April 20, 2004 8:13:00 PM(UTC)
tush

Rank: Member

Groups: Member
Joined: 4/20/2004(UTC)
Posts: 3

Hello PHP Masters

i am not a big time programmer, was trying to work out some PHP code and got with a problem, have a site which is used to upload heavy files arround 10mb - 20 mb more or less ... most of the time people get time out error i went arround and checked the php.ini that says

Code:
file_uploads = On

register_globals = On

upload_max_filesize = 20M

post_max_size = 20M

max_execution_time = 120

memory_limit = 16M




what should i do to get the time out not appear next time and people able to upload heavy files without any problem, hopefully not effecting rest ofthe site .. which have login and forms ...


please let me know what i need to do

thanks in advances



Tushar

www.tushargarg.com




Edited by user Monday, December 24, 2007 6:00:06 PM(UTC)  | Reason: Not specified

Andrew  
#6 Posted : Friday, April 23, 2004 12:34:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
Did you try to increase Timeout property of Image Uploader (like Paul did)?
tush  
#7 Posted : Monday, April 26, 2004 4:02:00 PM(UTC)
tush

Rank: Member

Groups: Member
Joined: 4/20/2004(UTC)
Posts: 3

hi Andrew
i did the below changes and then tried uploading a 10 mb file but still it didn't happned can u suggest me why ... after some time it said me action canceled

Code:
file_uploads = On

register_globals = On

upload_max_filesize = 80M

post_max_size = 80M

max_execution_time = 6000

memory_limit = 32M



thanks .. Tushar

Edited by user Monday, December 24, 2007 6:00:26 PM(UTC)  | Reason: Not specified

Andrew  
#8 Posted : Tuesday, April 27, 2004 1:09:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
Hi Tushar,

I meant not timeout in PHP settings, but timeout of the Image Uploader control. I.e. you should insert this string:



along with other properties of Image Uploader (in index.htm).
tush  
#9 Posted : Tuesday, April 27, 2004 2:40:00 PM(UTC)
tush

Rank: Member

Groups: Member
Joined: 4/20/2004(UTC)
Posts: 3

hi where can i find Image Uploader control .. it is not there in the html page..... from where i upload files

:(


... Tushar
Andrew  
#10 Posted : Tuesday, April 27, 2004 3:33:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
If you use our PHP samples, index.htm (for example in the BasicSample folder or some other one) should contain the following:

Code:
<object type="application/x-oleobject" classid="clsid:FD18DD5E-B398-452A-B22A-B54636BA9F0D" width="770" height="500" 
CodeBase="../ImageUploader2.cab" id="ImageUploader" name="ImageUploader" VIEWASTEXT>

	<param name="Layout" value="TwoPanes">
	<param name="Action" value="Upload.php">

         ...


</object>


This <object> tag includes Image Uploader control to the page. Insert the param I described above among other params.

Please let me know if you still have any problems.

Edited by user Monday, December 24, 2007 6:00:42 PM(UTC)  | Reason: Not specified

Fedor  
#11 Posted : Wednesday, February 13, 2008 3:32:29 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,481

Thanks: 3 times
Was thanked: 40 time(s) in 39 post(s)
========================================================
02/14/2008, Fedor
This topic is out of date.

See PHP Samples topic for actual PHP configuration info.
========================================================

Edited by user Tuesday, October 28, 2008 8:26:57 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.