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

Type: Discussion
Status: Archived
alanbrownco
View Replies:
drewR replied on at Permalink Reply
drewR
Hi Dave,
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.
drewR replied on at Permalink Reply
drewR
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.
vGibson replied on at Permalink Reply
vGibson
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

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.
stonereptiles replied on at Permalink Reply
stonereptiles
Awesome! Thank you!

Should almost be standard,
stonereptiles replied on at Permalink Reply
stonereptiles
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 :(
vGibson replied on at Permalink Reply
vGibson
Your theme should have some CSS files... It's probably called something else. General, Main, Style etc.
stonereptiles replied on at Permalink Reply
stonereptiles
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.
vGibson replied on at Permalink Reply
vGibson
Did you clear the cache?
stonereptiles replied on at Permalink Reply
stonereptiles
Of the site or of my browser? a refresh worked before. umm I can try a cache.

Or do you mean on the site?
GregJoyce replied on at Permalink Reply
GregJoyce
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.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
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.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.