2MB file size upload limit


(Duran) #1

I've reset my php.ini file to a larger file size in "upload_max_filesize" restarted apache, and I still get the error that PHP.INI has defined a 2M file size limit.


I even went so far as to turn off file uploads in PHP.INI, (restarted apache) and STILL received the same file size error when I tried to upload a file.



Does Matrix have the file size defined somewhere that I'm missing?



Thank you.


(Rayn Ong) #2

Yes, you may change the maximum file size allowed in MySource Matrix.


(Global Preferences)

System Configuration -> Global Preferences -> File Preferences -> Max File Upload



(User Group Preferences)

User Group -> Preferences Screen -> File Preferences -> Max File Size


(Duran) #3

I've set the "max file upload" to 10M.
but I can't find the second section your talking about



Do you mean "user folder" ?


(Duran) #4
         
                Options Indexes FollowSymLinks
                Order deny,allow
                Deny from all
    
          php_value post_max_size 80000000
          php_value upload_max_filesize 80000000
    
         


I added the "php_value" lines to that part of the virtualhost block in httpd.conf in my apache 2 install.

At this time I do not think its needed in any of the other directory blocks, but I'll try that next if its going to give me problems.

This allowed me to upload a file larger then 2M.

Lets add some tags to this post so others with the same problem can find it...

upload_max_filesize

post_max_filesize

2M

php.ini upload limit

;)

(Avi Miller) #5

Heheh, nice. :slight_smile: Thanks.


(Luke Wright) #6

[quote]but I can’t find the second section your talking about


Do you mean “user folder” ?

[right][post=“9696”]<{POST_SNAPBACK}>[/post][/right][/quote]



That would be the Preferences screen that can be found on any User Group asset. :slight_smile:


(Matt Webster) #7

[quote]That would be the Preferences screen that can be found on any User Group asset. :slight_smile:
[right][post=“9705”]<{POST_SNAPBACK}>[/post][/right][/quote]

While we are on the subject of File Uploads, what would be the recommended Maximum that would be set for a system wide configuration setting, given that you can also limit based on groups?



I would have thought no more than 10gb as you then starting getting into possibly browser timeout issues, network issues etc etc of you go bigger than this?



What are peoples thoughts?


(Avi Miller) #8

10gb?! I recommend 8mb. :slight_smile: Anything else, you should use FTP and the "pre-uploaded file" option.


(Matt Webster) #9

[quote]10gb?! I recommend 8mb. :slight_smile: Anything else, you should use FTP and the “pre-uploaded file” option.
[right][post=“9711”]<{POST_SNAPBACK}>[/post][/right][/quote]

Your trusting to give people ftp access to the pre-uploaded section :smiley: we are not especially when our server is set up with IP restrictions


(Avi Miller) #10

Up to you… you can run into problems (obviously) uploading that size of file via HTTP though.


(Matt Webster) #11

[quote]Up to you… you can run into problems (obviously) uploading that size of file via HTTP though.
[right][post=“9715”]<{POST_SNAPBACK}>[/post][/right][/quote]





Yeah I know, but we prefer not to open up FTP on a server outside our firewall if we can help it, and if we must then only permitted to a few IP addresses :slight_smile: