FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » 1.2.1 -- Large file attachments fail to upload
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
1.2.1 -- Large file attachments fail to upload [message #744] Tue, 26 February 2002 10:52 Go to next message
ironstorm is currently offline  ironstorm   Canada
Messages: 89
Registered: February 2002
Location: Toronto, Ontario, Canada
Karma: 0
Member
add to buddy list
ignore all messages by this user

I have an 11MB PDF document that I wanted to upload onto a forum at work...

I set the forum as follows:
Quote:


Allowed File Types: *
Maximum File Size 15000Kb
Maximum Files per Message: 5



and I set my php max file upload parameter to be 15MB

However when I try to upload the file I get an IE error page
(server not found), when I do it in Netscape 6.2 the it looks
like the connection is dropped at the server and the page does
not change.

I know smaller files up to 500kb work no problem.
Re: 1.2.1 -- Large file attachments fail to upload [message #745 is a reply to message #744] Tue, 26 February 2002 10:56 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
ironstorm wrote on Tue, 26 February 2002 10:52 AM

I have an 11MB PDF document that I wanted to upload onto a forum at work...

I set the forum as follows:
Quote:


Allowed File Types: *
Maximum File Size 15000Kb
Maximum Files per Message: 5



and I set my php max file upload parameter to be 15MB

However when I try to upload the file I get an IE error page
(server not found), when I do it in Netscape 6.2 the it looks
like the connection is dropped at the server and the page does
not change.

I know smaller files up to 500kb work no problem.


Can you try uploading a file this large using a normal php file upload form? I suspect that may fail also, PHP uses HUGE amounts of a memory when uploading a file which cause all kinds of problems when uploading large files especially over remote connections.


FUDforum Core Developer
Re: 1.2.1 -- Large file attachments fail to upload [message #754 is a reply to message #745] Tue, 26 February 2002 15:18 Go to previous messageGo to next message
ironstorm is currently offline  ironstorm   Canada
Messages: 89
Registered: February 2002
Location: Toronto, Ontario, Canada
Karma: 0
Member
add to buddy list
ignore all messages by this user


You're right...

The limitation appears to exist with PHP...

Even uploading a large file to localhost fails when
max_post, max_mem and max_up sizes have been upped in PHP.ini
Re: 1.2.1 -- Large file attachments fail to upload [message #756 is a reply to message #754] Tue, 26 February 2002 15:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
ironstorm wrote on Tue, 26 February 2002 3:18 PM


You're right...

The limitation appears to exist with PHP...

Even uploading a large file to localhost fails when
max_post, max_mem and max_up sizes have been upped in PHP.ini


There were some threads a long time ago on PHP's mailing lists about this problem. The problem occurs because instead of writing data to file as php recieves it, it inmstead stores the urlencoded file in memory. Obviously using up a lot of RAM.

From what I recall, the problem begins to occur somewhere at a 5meg level. If you want to upload large files I am afraid you'll need to consider compressing them or doing so via FTP.


FUDforum Core Developer
Re: 1.2.1 -- Large file attachments fail to upload [message #758 is a reply to message #756] Tue, 26 February 2002 15:27 Go to previous message
ironstorm is currently offline  ironstorm   Canada
Messages: 89
Registered: February 2002
Location: Toronto, Ontario, Canada
Karma: 0
Member
add to buddy list
ignore all messages by this user


Thanks that's good to know...

I'm going to force the limit down to 5MB on all my forums to
prevent that.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: cannot log in after installing forum
Next Topic: URL only avatars 1.2.1
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Oct 03 11:09:21 EDT 2024

Total time taken to generate the page: 0.05492 seconds