Created repository to upload large files, but large files can not be embedded with file picker

Created repository to upload large files, but large files can not be embedded with file picker

per David Bogner -
Nombre de respostes: 11
Imatge Core developers Imatge Plugin developers

Hi,

I read  Moodle 2.0.2 - File picker - maximum file size and also know about the php.ini max_upload and max_post etc things. So we have created a ftp-repository to be able to upload larger files than in php.ini allowed. So the files are uploaded and on the same server as the moodle installation. Nevertheless, in the file picker, when I try to add a 40MB audio file, from the ftp repository, I can't. Error message: file size too big. 

So why can't I use a ftp-repository for larger files than php.ini upload size allows. I thought that was the aim of repositories. Only the people who have access to the ftp-account can upload. So no problem for the upload size, but embedding does not work. That is kind of weird.

Bug or feature? Solution?

Best regards,

David

Mitjana de qualificacions: -
En resposta a David Bogner

Re: Created repository to upload large files, but large files can not be embedded with file picker

per G. M. -

I agree, it's quite ilogical: http://moodle.org/mod/forum/discuss.php?d=187251

My solution? I backed up the course, restored it in my local installation (where I can configure php.ini as needed) and then "uploaded" and added the files without any problems. Finally I backed up the local course and restored it into my site (using the file system repository).

Yes, I know, one has to spend far more time than needed, but at least the problem gets solved.

Cheers!

En resposta a G. M.

Re: Created repository to upload large files, but large files can not be embedded with file picker

per Gary Newport -

But the issue IS with the max_post and the Apache setting; so that is where you make the changes.

How can I know this?

Because I encountered exactly the same issue on Sunday and got my hosting company to increase the limit from 64Mb. They made the three changes and now I have a ceiling of 500Mb. It's not a bug with Moodle; it's a limiting factor in PHP and Apache.

En resposta a Gary Newport

Re: Created repository to upload large files, but large files can not be embedded with file picker

per G. M. -

When talking about Moodle in general, you are right, it is not a bug, but a PHP configuration issue. Anyway, how many people could have their hosting provider to change their server configurations?

When talking about the file system respository, this should definetely be classified as a bug. The FSR can be used to restore huge backup files, so why shouldn't it work with other kind of files?

The main issue here is, files have already been put in the server via FTP, so we are not actually talking about either an upload or a file size problem (neither from PHP or Moodle).

Cheers!

En resposta a G. M.

Re: Created repository to upload large files, but large files can not be embedded with file picker

per David Bogner -
Imatge Core developers Imatge Plugin developers

Hi,

should we create a tracker issue? Would you vote for it and could you animate others to vote for this issue?

Best regards,

David

En resposta a David Bogner

Re: Created repository to upload large files, but large files can not be embedded with file picker

per G. M. -

Yes, this needs a tracker and I would definetely vote Somrient

En resposta a David Bogner

Re: Created repository to upload large files, but large files can not be embedded with file picker

per G. M. -

There is already a tracker... please vote for it:

http://tracker.moodle.org/browse/MDL-27156

And if you can, also consider voting for this one:

http://tracker.moodle.org/browse/MDL-27337

Thanks!

En resposta a G. M.

Re: Created repository to upload large files, but large files can not be embedded with file picker

per David Bogner -
Imatge Core developers Imatge Plugin developers

Hi,

thanks for posting these issues. I just voted for both of them. Hope others who see this thread vote too.

Best regards,

David

En resposta a Gary Newport

Re: Created repository to upload large files, but large files can not be embedded with file picker

per David Bogner -
Imatge Core developers Imatge Plugin developers

Hi Gary,

thanks for the reply. Changing php.ini is not possible due to provider limitations. So what it still don't understand: The file is there on the server no need to upload/post anything. So php.ini should not even play a role in this matter. I want just to link the file, but even that is not possible. Not embedding OK, but not even able to link it, that is just ..... (sorry but missing the words here)

Best regards,

David

En resposta a David Bogner

Re: Created repository to upload large files, but large files can not be embedded with file picker

per Gary Newport -

I know what you mean because, as I said, I used ftp to transfer the large files up and then tried to attach them but it failed due to file size.

I assume it is due to the fact that Moodle does not create simple links; instead it creates a database record of each file attachment and I believe it is this that max_post is flagging up. As I said, I had ours altered and it worked!

Your hosting company should be willing to increase this limit and if not, look at changing. My hosting company has been outstanding in this respect; with unlimited space and bandwidth to boot.

En resposta a Gary Newport

Re: Created repository to upload large files, but large files can not be embedded with file picker

per G. M. -

Assuming it's a PHP limitation, ¿why then, can backup files bigger than "PHP max size" be restored through the file system repository?

First of all, the mbz package has to be read, and once uncompressed, many course components will surely exceed the PHP file-size limitation, yet they are still processed Ok.