File upload... again

Author Message

Vincent Saulnier

Monday 20 January 2003 6:00:54 am

When I want to upload a file via the File (under 5 MB) class sometimes the file is not uploaded and it leaves the field blank.

Is there a bug with file transfer?

Is there a configuration I should use in apache, php has already been configured!

Thank you.

Tony Wood

Monday 20 January 2003 9:01:10 am

I had this...

I can be that you var/cache/storage directory is not present or the web server does not have access privilages to it.

> When I want to upload a file via the File (under 5 MB) class
> sometimes the file is not uploaded and it leaves the field
> blank.
>
> Is there a bug with file transfer?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Vincent Saulnier

Tuesday 21 January 2003 6:22:29 am

I should tell you that the size of the files I want to transfer are 400 Mo and above!

Vincent Saulnier

Tuesday 21 January 2003 6:38:37 am

> Most php installs have a limit of 8Mb, take a look at the
> post_max_size in phpinfo();
>
> Most providers do this for a reason! Use FTP for files >> 8
> Mb, such as 400 Mb. The http-protocol is not designed for
> such files!

Thank you hans but I forget to write that I've already changed :
post_max_filesize= 1Go
memory_limit=1Go
max_input_time=0 (unlimitited time)
max_execution_time=0 (unlimited time)
upload_max_filesize=1Go

Do you know a way to use a browser to use FTP protocole that works with PC and MAC

Tony Wood

Tuesday 21 January 2003 6:53:36 am

Hi,

Assumption: You cannot upload any files using eZPublish 3 admin interface.

I had something similar to this. For me the problem was that apache did not have sufficient rights to var/cache/storage location.

The solution is to give apache rights to var/cache/storage i.e. chown noone.noone var/cache/storage or something similar.

I hope this helps a little.

Tony

> When I want to upload a file via the File (under 5 MB) class
> sometimes the file is not uploaded and it leaves the field
> blank.
>
> Is there a bug with file transfer?
>
> Is there a configuration I should use in apache, php has
> already been configured!
>
> Thank you.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Vincent Saulnier

Tuesday 21 January 2003 7:09:21 am

> Hi,
>
> Assumption: You cannot upload any files using eZPublish 3
> admin interface.
>
> I had something similar to this. For me the problem was that
> apache did not have sufficient rights to var/cache/storage
> location.
>
> The solution is to give apache rights to var/cache/storage
> i.e. chown noone.noone var/cache/storage or something
> similar.
>
> I hope this helps a little.
>
> Tony
>

Thank you Tony but I've already succeed with uploading files under 2 Mo.

Vincent Saulnier

Wednesday 05 February 2003 6:07:53 am

> > Most php installs have a limit of 8Mb, take a look at
> the
> > post_max_size in phpinfo();
> >
> > Most providers do this for a reason! Use FTP for files >>
> 8
> > Mb, such as 400 Mb. The http-protocol is not designed
> for
> > such files!
>
> Thank you hans but I forget to write that I've already
> changed :
> post_max_filesize= 1Go
> memory_limit=1Go
> max_input_time=0 (unlimitited time)
> max_execution_time=0 (unlimited time)
> upload_max_filesize=1Go
>
> Do you know a way to use a browser to use FTP protocole that
> works with PC and MAC

I'm still having the same problem,
Does someone got a solution?

It's a life or death situation!
thanks.

Vidar Langseid

Wednesday 29 October 2003 2:45:37 am

FYI

Apache also have a limit for the size of a request body.
The directive in question is named : LimitRequestBody

Claus Jensen

Wednesday 29 October 2003 3:46:53 am

The directive setting did not have any positive effect on this problem for my site. I still get:
Request Entity Too Large
The requested resource
/admin/content/edit/3863/1/
does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.
Apache/2.0.40 Server at xxx.xx.x.xx Port 9000

when trying to upload a file that is bigger than ca. 500 KB.
I also checked that apache has full control over all the directories in ezpublish/var.

If anybody has other suggestions PLEASE give me a tip...please... im dying here...

regards,
claÜs

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:33:23
Script start
Timing: Jan 30 2025 19:33:23
Module start 'layout'
Timing: Jan 30 2025 19:33:23
Module start 'content'
Timing: Jan 30 2025 19:33:23
Module end 'content'
Timing: Jan 30 2025 19:33:23
Script end

Main resources:

Total runtime0.0380 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1328151.2109
Module start 'layout' 0.00530.0044 739.3438220.6875
Module start 'content' 0.00970.0261 960.03131,005.8047
Module end 'content' 0.03580.0021 1,965.835941.9922
Script end 0.0379  2,007.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00297.5670140.0002
Check MTime0.00123.1160140.0001
Mysql Total
Database connection0.00071.762110.0007
Mysqli_queries0.00318.264630.0010
Looping result0.00000.037010.0000
Template Total0.00154.010.0015
Template load0.00123.041910.0012
Template processing0.00040.929410.0004
Override
Cache load0.00082.194110.0008
General
dbfile0.004311.278280.0005
String conversion0.00000.013840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs