Dotclear

Ticket #1232 (closed defect: fixed)

Opened 14 years ago

Last modified 13 years ago

Import/Export: Cannot handle large files

Reported by: reppep Owned by: team
Priority: normal Milestone:
Component: module:import/export Version: 2.3
Severity: major Keywords: import
Cc:

Description

I fed a 5.7mb export to "Import a full backup file", and got back:

Errors:

The uploaded file exceeds the maximum file size allowed.

The cap is too low.

Change History

comment:1 Changed 14 years ago by reppep

Fails with a 2.7mb single blog too. Stuck! I need to migrate from MySQL to SQLite, so I cannot use a MySQL dump either.

comment:2 Changed 14 years ago by reppep

Workaround: copy the file to public, then import it locally.

Problem #1: This is not always an option. Problem #2: This may not be secure -- isn't public the directory for downloadable assets? I don't want to expose my full export! Problem #3: The error message is ambiguous. It should a) specify how to raise the upload cap, and b) be clear that the problem is with HTTP import, not local import on the webserver.

comment:3 Changed 14 years ago by bruno

This limitation is set by your ISP, most of the time users cannot change it. The only workaround is to upload the file by ftp. I agree that public/ may not be a suitable place to do this, we may then find another place for these administrative files

comment:4 Changed 14 years ago by reppep

The limitation is *not* set by my ISP (Linode). It's set in Dotclear. As someone who installed and maintains my own Dotclear, where is the cap configured?

It should be larger by default (in Mercurial).

comment:5 Changed 14 years ago by philippe

@reppep : The limitation is not due to your ISP nor Dotclear : it is due to the php values post_max_size and upload_max_filesize in your php.ini file.

Hence it is due to your hosting provider. If you have acces to the php.ini file on your server, you may change it for a higher value

comment:6 Changed 14 years ago by reppep

Yes, it's a Linode, thanks.

The error message should mention that this is controlled by PHP configuration variables post_max_size & upload_max_filesize, for users who have direct or indirect access to modify php.ini.

comment:7 Changed 14 years ago by franck

  • Milestone 2.3 deleted

comment:8 Changed 13 years ago by JcDenis

We added zip ability to import/export this could help a little more... see ticket #1319

comment:9 Changed 13 years ago by franck

  • Priority changed from high to normal

comment:10 Changed 13 years ago by franck <carnet.franck.paul@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [c79e6e87ce6e]) Add max file size upload limit for flat import, fixes #1232

comment:11 Changed 13 years ago by franck

The mention of necessary modifications needed to allow bigger files may depend on hosting services (PHP configuration, …).

Note: See TracTickets for help on using tickets.

Sites map