OwnCloud 4.0.3 Max Upload Size = 0B?

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
helicopterjeff
Beginner
Posts: 22
Joined: Wed Apr 04, 2012 2:55 pm

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby helicopterjeff » Sat Jul 07, 2012 9:02 pm

phpinfo definitely looks fine. what happens when you actually try to upload something in the web interface?

tomdieu
Newbie
Posts: 8
Joined: Tue Jul 24, 2012 1:55 pm

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby tomdieu » Tue Jul 24, 2012 1:57 pm

Hi,
I have the same problem. Any solution or idea?

Grilloparlante
Newbie
Posts: 2
Joined: Fri Jul 27, 2012 3:32 pm

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby Grilloparlante » Fri Jul 27, 2012 3:34 pm

I solved changing the quota size from "default" to "none"

tomdieu
Newbie
Posts: 8
Joined: Tue Jul 24, 2012 1:55 pm

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby tomdieu » Mon Jul 30, 2012 1:54 pm

Which info (and where) do you set from "default" to "none"?

Il look in php properties and in owncloud config and I didn't found "quota size" or something like that...

Grilloparlante
Newbie
Posts: 2
Joined: Fri Jul 27, 2012 3:32 pm

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby Grilloparlante » Mon Jul 30, 2012 3:18 pm

From web interface as administrator:
Settings->Users

tomdieu
Newbie
Posts: 8
Joined: Tue Jul 24, 2012 1:55 pm

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby tomdieu » Mon Jul 30, 2012 3:31 pm

Thanks!

But that didn't solved my problem :(

tomdieu
Newbie
Posts: 8
Joined: Tue Jul 24, 2012 1:55 pm

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby tomdieu » Thu Aug 16, 2012 11:35 am

Hello,

For me, I found an answer to this problem.

To know the upload max size OC use some php parameters AND the value of the free space on the disk.

My OC instalation is on an unlimited webhosting and the php fonction disk_free_space is disabled as I can see in the error log :
PHP Warning: disk_free_space() has been disabled for security reasons in /home/*************/lib/filestorage/local.php on line 165

So the calculated free space is always 0 !!

I hope that will help you.

It's not really a bug, so I don't know if it's should be declared in bug tracker.

Therefore I modified the file : /lib/filestorage/local.php

I replace

Code: Select all

   public function free_space($path){
      return disk_free_space($this->datadir.$path);
   }


by

Code: Select all

   public function free_space($path){
      //return disk_free_space($this->datadir.$path);
      return 1000000000;
   }


What set the free space to ... a lot ;)

And now it's working like a charm :)

christophk
Starter
Posts: 72
Joined: Fri May 25, 2012 11:25 pm

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby christophk » Mon May 05, 2014 2:01 pm

Dear all

Can someone tell me where I can find

/lib/filestorage/local.php

in owncloud 5.

I have the same issue there, but can't find the local.php.
KR, CK

Owncloud 4.5.10 & 5.0.6
Hosted Webspace (Uberspace)
Apache 2.2.15 (CentOS)
PHP 5.4.4

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: OwnCloud 4.0.3 Max Upload Size = 0B?

Postby RandolphCarter » Mon May 05, 2014 3:00 pm

I think it's in lib/private/files/storage/local.php, line 258 (see https://github.com/owncloud/core/blob/v ... l.php#L258).
If that doesn't work, just search for "disk_free_space" in your owncloud folder.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests