Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
File Uploader plugin: Constraint settings not saved
Avatar
Michael Todd
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 27, 2014 - 11:06 am

I've just started configuring the File Uploader plugin.  Everything seems to be working swimmingly, files uploading without an issue - love this plugin.

The problem: I can't set a Maximum size of the uploaded files. The image width and height restrictions work just fine, but I can't set a restriction on the max file size.

From the dashboard, in the forum plugin options, the field says:

Maximum size (in bytes) of image files (0 = no limit)
PHP UPLOAD_MAX_SIZE is 33554432 and PHP POST_MAX_SIZE is 34603008:

I set this value to 2097152.  (2 MB, seems reasonable)

I also set the width and height restrictions to 2500 pixels each.  Click save, everything looks good.

When I then visit the forum and click to upload an attachment into a topic, here are the listed constraints:

Image upload constraints:    Size (bytes):  unlimited    Width (pixels):  2500    Height (pixels):  2500

Same goes for media files -- anything value I put into the Maximum size is ignored, unlimited uploads allowed.

File upload constraints: Size (bytes):  unlimited

The PHP UPLOAD_MAX_SIZE value will keep anyone from uploading anything too crazy (and the height and width restrictions should be good enough to keep the images down to size), but I'd love to be able to set the max size to something reasonable. 

Could I be doing something wrong here, or have others encountered this same problem? 

Thanks for any guidance.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 27, 2014 - 12:44 pm

There is definitely something going wrong there I am sorry to say. Odd that nobody has raised this already. I can see the values being rerturned as zero.

I am going to open a bug report and we will take a look at this. Pretty quickly I reckon...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Todd
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 27, 2014 - 4:45 pm

Thanks for looking at this so quickly!  This one's not a showstopper, but a fix would be great.  Much appreciated.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 27, 2014 - 5:21 pm

It has just been pointed out to me - a few minutes ago - that this is not really the problem it seems to be.  You are not seeing the limits - I bet - because you are looking at the editor/attachments section as a forum admin. And as a forum admin the limits do not apply to you. Log in as a user and you will see them and have them imposed.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Todd
Rookie
Free Members
sp_UserOfflineSmall Offline
Jun 27, 2014 - 9:41 pm

You nailed it!  Figured the problem had to be between my chair and keyboard.  It's exactly as you said it would be, once I updated the permissions to allow regular members to upload files.  Thanks, all set now!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 27, 2014 - 10:53 pm

cool... thanks for the update...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625