Members uploading large photos
Permalink Browser Info Environment
I was wondering if there is a way to restrict the size of a image a member can upload as this takes up a lot of storage for me.
Also are the photos scanned for viruses at any stage during upload?
Im a bit of a novice so forgive me if these are basic questions
Many thanks for any advice
Also are the photos scanned for viruses at any stage during upload?
Im a bit of a novice so forgive me if these are basic questions
Many thanks for any advice
Type: | Discussion |
---|---|
Status: | Archived |
Hi Dave,
We could do custom development work for these. We'd need more details about what files need scanning and where they are uploaded from, and what size restriction you want. You can open a support ticket if you'd us to start this work.
We could do custom development work for these. We'd need more details about what files need scanning and where they are uploaded from, and what size restriction you want. You can open a support ticket if you'd us to start this work.
What I did to remedy this was to set a max-width for images via css and limited it to the container...
For my theme I added to the main.css the following
but, if your using threaded view you will have to add another one... I used the following in my theme but it will be different for you.
Keep in mind all this does is resize the rendered images so that it does not break your forum styling. It does nothing for file size or uploaded file dimensions.
For my theme I added to the main.css the following
td.ccm-discussion-message img { max-width: 800px; }
but, if your using threaded view you will have to add another one... I used the following in my theme but it will be different for you.
.columncontent img { max-width: 800px; }
Keep in mind all this does is resize the rendered images so that it does not break your forum styling. It does nothing for file size or uploaded file dimensions.
Awesome! Thank you!
Should almost be standard,
Should almost be standard,
Actually I don't have a main.css in my current theme? :S
I tried adding it to discussion.css but that didn't help
Any idea where else I could put it?
thanks you
Here's an example
http://www.themonsterkru.com/index.php/forums/member-collctions/new...
Makes a mess of it :(
I tried adding it to discussion.css but that didn't help
Any idea where else I could put it?
thanks you
Here's an example
http://www.themonsterkru.com/index.php/forums/member-collctions/new...
Makes a mess of it :(
Your theme should have some CSS files... It's probably called something else. General, Main, Style etc.
I've placed the following into every CSS file i could find in the theme (2)
td.ccm-discussion-message img {max-width: 700px;}
.columncontent img {max-width: 700px;}
typography.css
templatemo_style.css
Not sure why it won't take.
td.ccm-discussion-message img {max-width: 700px;}
.columncontent img {max-width: 700px;}
typography.css
templatemo_style.css
Not sure why it won't take.
Did you clear the cache?
Of the site or of my browser? a refresh worked before. umm I can try a cache.
Or do you mean on the site?
Or do you mean on the site?
Yes if you search "clear cache" in the dashboard search, it will bring up the clear cache page and then any changes you have made in files should be reflected on your site.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
That's a great question.
There is a lot of flexibility for file management. However, as far as I know there is not a way to restrict the size of a file a specific member can upload.
I do not think there is a size restriction for uploaded files based on user group either. You could restrict the upload size for all users. That might not be the right solution for your circumstance.
We are surprised this has not been discussed before. It's a good suggestion.
Photos are not scanned for viruses as they are uploaded in concrete5, but it's possible the your host scans files on upload. Probably not though.