WebFaction
Community site: login faq

Hi, I try to change the limit of size for uploaded file on my owncloud instance (actually it's 20MB, i want to up to 150MB), perhaps something wrong with this initial htaccess given by owncloud dev ? :

ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php
<IfModule mod_php5.c>
php_value upload_max_filesize 150M
php_value post_max_size 150M
php_value memory_limit 256M
<IfModule env_module>
  SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^.well-known/host-meta /public.php?service=host-meta [QSA,L]
RewriteRule ^.well-known/carddav /remote.php/carddav/ [R]
RewriteRule ^.well-known/caldav /remote.php/caldav/ [R]
RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]
RewriteRule ^remote/(.*) remote.php [QSA,L]
</IfModule>
Options -Indexes

Thanks,

Sr

asked 21 Aug '12, 09:57

reyman64
131816
accept rate: 25%


Depending on which server you are on, you may need to change the upload limit with a php.ini file instead of .htaccess.

permanent link

answered 21 Aug '12, 10:18

timg ♦♦
1.3k4
accept rate: 30%

I create a php.ini at root :

upload_max_filesize = "250M"
post_max_size = "250M"
permanent link

answered 21 Aug '12, 10:17

reyman64
131816
accept rate: 25%

I have tried both methods, php.ini and .htaccess. But none of them work.

permanent link

answered 27 Dec '14, 06:24

Ibn Saeed
1115
accept rate: 0%

@Ibn Saeed: I've checked your site and your php.ini directives are working correctly.

(29 Dec '14, 16:16) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×7

question asked: 21 Aug '12, 09:57

question was seen: 5,214 times

last updated: 29 Dec '14, 16:16

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM