Help - Search - Members - Calendar
Full Version: about file type upload
Movable Type Community Forum > Additional Resources > Tips and Tricks
krezy
Is it possible to restrict the file types being uploaded? I only want people to upload .gif/.jpg images.

Thank you in advance.
krezy
hmm oke.

well, is there a way to have a upload quota? e.g. people can not upload more than e.g. 5 MB total, unless i raise the quota.

any help would be appreciated.
bmk
I don't know.  Good questions.  :)
kadyellebee
Well, you could change the info in the mt.cfg, but that would limit it for everyone.  
CODE
# When uploading files through Movable Type's upload mechanism, a ceiling
# is put on the size of the files that can be uploaded to prevent
# denial-of-service attacks. By default this setting is 1MB.
#
# CGIMaxUpload 500000

Uncomment that line (take off the #).

Kristine
krezy
thank you for your input kristine. however, the CGIMaxUpload specifies the max size for each upload.

what i actually meant is something like a total directory quota, e.g. one person could upload 10 files, each 500 kB, reaching a total of 5000 kB. If 5000 kB would be the blog quota, users can not upload anymore.

a solution would be to create a subdomain and specify a quota for this subdomain in your webhost control panel. however, this way, i cannot have a 'central' installation of MovableType (on the 'main' domain) executing the cgi-files cgi-wrapped for different weblogs.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.