# Unable to upload files larger than 60 ko

**URL:** https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229
**Category:** Pydio 8
**Created:** [April 26, 2020, 3:21pm UTC](https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229 "2020-04-26T15:21:27Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![cheun](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/cheun/32/1194_2.png) [@cheun](https://forum.pydio.com/u/cheun)
#### Post date: [April 26, 2020, 3:21pm UTC](https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229/1 "2020-04-26T15:21:27Z")

</div>

upgrade Pydio 7.0.4 to 8.2.5  
Debian 8  
PHP 5.6.40-0+deb8u11

Hello everyone,  
I am facing a problem that I have not been able to solve for several days:  
My users complain that they can no longer upload files.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/f/f64ecacedfe920e21e5b5efe039f6b39881bcd50.png)

I noticed that all files larger than 60 KB get in error.  
It seems that the problem appeared after the change from pydio 7.0.4 to 8.2.5 but I am not sure.

in /etc/php5/apache2/php.ini  
memory\_limit = 128000000  
post\_max\_size = 600000000  
upload\_max\_filesize = 512000000

Can you help me please?

Below the error in the log /var/log/apache2/error-XXXX.log

[Sun Apr 26 17:20:11.831732 2020] [:error] [pid 1838] [client xxx.xxx.xxx.xxx:62255] PHP Fatal error: Uncaught exception ‘Pydio\Core\Exception\ResponseEmissionExcepti  
on’ with message ‘Could not send response!’ in /var/www/pydio/core/src/pydio/Core/Http/Server.php:259\nStack trace:\n#0 [internal function]: Pydio\Core\Http\Server-\>  
catchError(8, ‘ob\_end\_flush():…’, ‘/var/www/pydio/…’, 158, Array)\n#1 /var/www/pydio/core/src/pydio/Core/Controller/ShutdownScheduler.php(158): ob\_end\_flush()\n#2 [  
internal function]: Pydio\Core\Controller\ShutdownScheduler-\>callRegisteredShutdown()\n#3 {main}\n thrown in /var/www/pydio/core/src/pydio/Core/Http/Server.php on l  
ine 259, referer: [https://XXXXXXXX.XX/share](https://XXXXXXXX.XX/share)

---

<div class="post-metadata">

### Author: ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)
#### Post date: [April 26, 2020, 4:15pm UTC](https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229/2 "2020-04-26T16:15:48Z")

</div>

> [@cheun](#):
>
> memory\_limit = 128000000  
> post\_max\_size = 600000000  
> upload\_max\_filesize = 512000000

They are the params that should be changed. (use 256M format for better 🙂 ). post\_max\_size and upload\_max\_filesize should have the same value

- Make sure that you are modified in the right php.ini. You can create a phpinfo() file in the root of pydio then brow it. You can see the correct absoluted path of php.ini
- After changing php.ini, please restart apache
- Set to empty Pydio \>\> Setting \>\> Upload \>\> Upload filesize then click “Save”

---

<div class="post-metadata">

### Author: ![cheun](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/cheun/32/1194_2.png) [@cheun](https://forum.pydio.com/u/cheun)
#### Post date: [April 26, 2020, 4:45pm UTC](https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229/3 "2020-04-26T16:45:04Z")

</div>

Hello c12simple

Thank you for your prompt answer.  
You where right in checkin the correct path for the ini.php witch was /etc/php5/cli/php.ini =\> /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini are exactly the same.  
I corrected the values:  
memory\_limit = 128M  
post\_max\_size = 512M  
upload\_max\_filesize = 512M

I tried 0 or empty for Pydio \>\> Setting \>\> Upload \>\> Upload filesize

But still on error.

I was wondering why tiny files can be uploaded. Curious

---

<div class="post-metadata">

### Author: ![cheun](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/cheun/32/1194_2.png) [@cheun](https://forum.pydio.com/u/cheun)
#### Post date: [April 27, 2020, 10:12am UTC](https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229/4 "2020-04-27T10:12:44Z")

</div>

It seems that PHP can’t handle the error.  
May be an upgrade from actual PHP 5.6.40 to 7.2 can bring more informations about the error?  
Is there a procedure to upgrade ? (may be remove previous PHP or something else?)

---

<div class="post-metadata">

### Author: ![cheun](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/cheun/32/1194_2.png) [@cheun](https://forum.pydio.com/u/cheun)
#### Post date: [May 26, 2020, 7:44am UTC](https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229/5 "2020-05-26T07:44:12Z")

</div>

It seems that the problem comes from the version of the SMB protocol.  
on Pydio 7.0.4 it was possible to specify the version of the SMB protocol to be used by smbclient in the configuration of the Samba driver.  
 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/8/87f591ab53084c27d0e09e59d8bad6a0ad5135bb.png)  
The problem on the last version of Pydio 8 (8.2.5) the field where it was possible to enter arguments to the smbclient disappeared.  
 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/3/368ddca108ba9aa59e0fd71922bc8485bd0be861.png)

I tried to configure smb.conf (by adding max protocol=SMB2) but there is no effect. It seems Pydio really needs the entiere command line in it’s config.

So question is how can we add SMB2 argument in Pydio 8.2.5 ?

---

<div class="post-metadata">

### Author: ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)
#### Post date: [May 26, 2020, 10:35am UTC](https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229/6 "2020-05-26T10:35:44Z")

</div>

> [@cheun](#):
>
> So question is how can we add SMB2 argument in Pydio 8.2.5 ?

Please read carefully the instruction of samba config in Pydio (the last posted screenshot)

---

<div class="post-metadata">

### Author: ![cheun](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/cheun/32/1194_2.png) [@cheun](https://forum.pydio.com/u/cheun)
#### Post date: [May 27, 2020, 2:56pm UTC](https://forum.pydio.com/t/unable-to-upload-files-larger-than-60-ko/3229/7 "2020-05-27T14:56:43Z")

</div>

Yes I read it and it’s all Ok on this side about smclient. What am’I missing?
