Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

OT: Maximum upload filesize

LEGEND ,
Feb 25, 2007 Feb 25, 2007
Can I change this? It appears (with PHP) that the largest file I can upload
is one that takes 30seconds or less, since I timeout at that point.

My client may want to upload 50MB files, and I'm hoping for a way to ease
this process....

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================



TOPICS
Server side applications
335
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 25, 2007 Feb 25, 2007
Add:

<?php set_time_limit(seconds); ?>

to the top of the page.

<?php set_time_limit(0); ?>

Gives an unlimited limit.

This sets the timeout value for the script, the default is 30 seconds, but
for long operations you'll want to increase it.

--
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 25, 2007 Feb 25, 2007
Murray *ACE* wrote:
> Can I change this? It appears (with PHP) that the largest file I can upload
> is one that takes 30seconds or less, since I timeout at that point.

I don't think it's the time limit that's the problem, but the maximum
size of the POST array. The default is 8MB, and maximum file size is 2MB
by default. Both can be changed only if you have control over php.ini.

> My client may want to upload 50MB files, and I'm hoping for a way to ease
> this process....

It sounds a very inefficient way of doing it, because PHP file uploads
are stored in a temporary upload folder until the integrity of the
upload is verified. I don't know what the memory implications are, but
for a 50MB file, you're going to need 100MB of disk space. The extra
50MB will be freed up once the upload has completed, but you'll always
need that extra. AFAIK, there's also no way of checking the integrity of
the file until it's completely uploaded.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 25, 2007 Feb 25, 2007
LATEST
Yeah - that makes sense. I'm sure I do not have control over php.ini. I'll
speak to the host.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"David Powers" <david@example.com> wrote in message
news:ersf9e$d7f$1@forums.macromedia.com...
> Murray *ACE* wrote:
>> Can I change this? It appears (with PHP) that the largest file I can
>> upload is one that takes 30seconds or less, since I timeout at that
>> point.
>
> I don't think it's the time limit that's the problem, but the maximum size
> of the POST array. The default is 8MB, and maximum file size is 2MB by
> default. Both can be changed only if you have control over php.ini.
>
>> My client may want to upload 50MB files, and I'm hoping for a way to ease
>> this process....
>
> It sounds a very inefficient way of doing it, because PHP file uploads are
> stored in a temporary upload folder until the integrity of the upload is
> verified. I don't know what the memory implications are, but for a 50MB
> file, you're going to need 100MB of disk space. The extra 50MB will be
> freed up once the upload has completed, but you'll always need that extra.
> AFAIK, there's also no way of checking the integrity of the file until
> it's completely uploaded.
>
> --
> David Powers, Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
> Author, "PHP Solutions" (friends of ED)
> http://foundationphp.com/


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines