Restricting maximum size of upload in custom fields
- intouchweb
- Topic Author
- Offline
- Elite Member
-
Less
More
3 years 4 months ago #151412
by intouchweb
Restricting maximum size of upload in custom fields was created by intouchweb
I have a few upload custom fields in the membership form and need to restrict the size of the upload, as the admin emails do not arrive if the attachments are too large (even though the form appears to be submitted to the user).
I see in the custom field parameters I can select "Max size" as a 'Data Type Validation' option, which then changes the "Validation Rules' field to "validate[required,maxSize[12]]" - What does the 12 mean here, is that 12Mb? Can this be set to anything wuithin the limits of the server?
Secondly, as I have a few upload fields in the one form, is there a max size validation setting for ALL uploads in total (eg if three uploads exceed say 10Mb)
Thanks
I see in the custom field parameters I can select "Max size" as a 'Data Type Validation' option, which then changes the "Validation Rules' field to "validate[required,maxSize[12]]" - What does the 12 mean here, is that 12Mb? Can this be set to anything wuithin the limits of the server?
Secondly, as I have a few upload fields in the one form, is there a max size validation setting for ALL uploads in total (eg if three uploads exceed say 10Mb)
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 4 months ago #151427
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Restricting maximum size of upload in custom fields
Hello
We do not support file size limitation at the moment. Will try to support it in future releases
Tuan
We do not support file size limitation at the moment. Will try to support it in future releases
Tuan
Please Log in or Create an account to join the conversation.
- intouchweb
- Topic Author
- Offline
- Elite Member
-
3 years 4 months ago #151428
by intouchweb
Replied by intouchweb on topic Restricting maximum size of upload in custom fields
Oh ok, so then what does the Data Type Validation option and the Validation Rules field mean that says "validate[required,maxSize[12]]" ?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 4 months ago #151429
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Restricting maximum size of upload in custom fields
That's used for different purpose. I have to check documentation but I remember it can be used for checkbox custom fields to limit maximum number of options could be selected
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- intouchweb
- Topic Author
- Offline
- Elite Member
-
3 years 4 months ago #151430
by intouchweb
Replied by intouchweb on topic Restricting maximum size of upload in custom fields
Ok thank you Tuan, would be great if you can add it in the future. The problem is significant because the user thinks their subscription has been submitted and received, and the system will take their payment BUT then does not inform the admin as the attachment is rejected, thats a potentially big issue, thanks.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 4 months ago #151456
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Restricting maximum size of upload in custom fields
OK Mark. Will do and inform you when it is implemented
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 2 months ago #152569
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Restricting maximum size of upload in custom fields
Hello Mark
I just implemented this option in the extension. If you need it, download latest package, upgrade it to your site. Then go to Membership Pro -> Configuration, set Upload Max File Size to the value you want and the file upload will be limited to that configured file size
Regards,
Tuan
I just implemented this option in the extension. If you need it, download latest package, upgrade it to your site. Then go to Membership Pro -> Configuration, set Upload Max File Size to the value you want and the file upload will be limited to that configured file size
Regards,
Tuan
The following user(s) said Thank You: intouchweb
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.