We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Limit the size of photos and restrict video | Forum

Topic location: Forum home » Support » General Questions
Dani Basil
Dani Basil Aug 12
Hi all,


Is there any way to allow photos and video, but limit the size of photos and restrict video to external urls? Or at least add a note that pops up when anyone is preparing to upload something requesting they keep it under a certain size?

Any suggestions?


Thanks

Marcus
Marcus Aug 13
Pls check admin area
dave Leader
dave Aug 13
Here is a few things you can do.  


What your referring to is called hotlinking, when someone uses your image or data on their site without permission, here is some info...   It will only allow images to be shown if the request is your site, or whatever site you put in the code.


First here....  https://developers.oxwall.com/forum/topic/51554


Then you can also limit the file size of the upload (photo or video) in the admin area.  Limiting the upload size is not limiting the size of the pic or video itself but it helps.  I always told my users that nothing bigger than a postcard size for images, you can get just as good of a picture at postcard size as you can a 3500 x whatever image, its just that many people dont know how to resize images propery so they keep the huge versions and try to upload them.   


Remember you can also modify the size of uploads via your htaccess or php.ini  file also.





The Forum post is edited by dave Aug 13