close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Script crashes internet explorer during upload

Thread began 12/06/2009 10:41 pm by J7HNW | Last modified 12/14/2009 11:35 am by Jason Byrnes | 4500 views | 7 replies |

J7HNW

Script crashes internet explorer during upload

Script times out
--------------------------------------------------------------------------------

My Digital file pro works fine with small sized files.

On larger files - the script is timing out. The graphic showig the upload is working fine then it just goes to an internet explorer "pag can not be found " error so I assume the script has stopped.

How can I adjust the script please to run for longer ?

Page is attached

Tried the Web assist server timeout

<?php
// WA Set Server Timeout
if($_SERVER["REQUEST_METHOD"] == "POST"){
set_time_limit ("180");
}
?>

Nothing happened

So I Have added this to the script

<?php
// script dies after 600 secs
set_time_limit(600);
?<

Still no difference.

Any help appreciated

Attached Files
pdfuploader.zip
Sign in to reply to this post

Jason ByrnesWebAssist

You also started another thread with the same issue. See the first thread you started for my replay:
showthread.php?t=8137

Sign in to reply to this post

J7HNW

Please update

Jason

Please confirm code to extend upload time to 6 minutes and filesize to 6mb

Have tried to add the PHP examples you sent but to no avail

Thanks
John

Sign in to reply to this post

Jason ByrnesWebAssist

There is no exact code change to be made for those settings.


to increase the upload file size to 6MB, you need to increase the
upload_max_filesize
post_max_size

The post_max_size setting should be larger than the upload_max_filesize




to increase the script execution time, you need to adjust:
max_input_time
max_execution_time




if there image resizing occurring, you will also need to adjust:
memory_limit

if you are resizing images, you should increase the memory_limit to 256M

Sign in to reply to this post

J7HNW

Lare file upload

Jason

Please advise where the changes should be made. Is it on the actual page or on a different page to control upload times and file sizes

I installed this for the server panel

<?php
// WA Set Server Timeout
if($_SERVER["REQUEST_METHOD"] == "POST"){
set_time_limit ("180");
}
?>

Where should I add the items you suggested. Sorry I usually work with ASP and know nothing of PHP - excuse my ingorance

Should it look ike this ?

<?php
// WA Set Server Timeout
if($_SERVER["REQUEST_METHOD"] == "POST"){
set_time_limit ("180");
},{max_input_time ("180").
{max_execution_time ("180"),
{upload_max_filesize ("4096"),
{memory_limit ("256m"),
}
?>

And should this be embedded at the top of the form ?

Thanks

John

Sign in to reply to this post

Jason ByrnesWebAssist

These settings can only be changed in the php.ini file:
max_input_time
upload_max_filesize
memory_limit




to change the max_execution_time in your script, add the following:

php:
<?php

ini_set
('max_execution_time','180');
?>
Sign in to reply to this post

J7HNW

Please advse

The server people have set the times as per instruction - but still the uploader stops after around 20 seconds on large files. Small files are fine.

They have asked if you can tell me which settings need to be changed

Here are the PHP settings, do you know what needs to be changed, each time we make a change we need to restart the web server.

Please advise - PHP info file attached

Ir starts to upload fine - but then IE8 goes blank and displays " Internet Explorer cannot display the webpage "

Thanks Jason

Attached Files
phpinfo().zip
Sign in to reply to this post

Jason ByrnesWebAssist

It is impossible for me to know exactly what settings need to be adjusted. It depends on the size of the file you are trying to upload and how you have configured Digital File pro

maybe try increasing:
memory_limit 128M

to:
memory_limit 256M


and :
upload_max_filesize 2M

to

upload_max_filesize 8M (or larger if you are uploading files larger than 8M)

and:
max_input_time 60

to:
max_input_time 300

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...