Nestor Posted April 1, 2008 Posted April 1, 2008 Hi All, I have a container Field that is only used for Jpegs. the Problem that im having is that people are putting high and low resolution jpegs. What im trying to do is limit the size for the Jpeg or limit the jpegs to just to low, probably my best bet would be to find a way to limit a jpeg below 200KB for example. Anybody knows if this is possible. Thanks
KnoxIan Posted April 10, 2008 Posted April 10, 2008 In a related vein, is there any way to check the file size before the file is uploaded to the container field? If there's a way to do this, please let me know. Here's a way to reject large files after they've been stored in your container field (which let's say is named "Con_File"): Create a calculation field (let's call it Cn_FileSize) that equals: Length ( Con_File ) Add these steps to your file uploading script after the "Insert File" step: If [Cn_FileSize > 204800] (this would be 200K) Show Custom Dialog ["That's too big."] Delete Record/Request [No dialog] End If
Nestor Posted July 7, 2008 Author Posted July 7, 2008 Works perfectly, BUT if users do a lot of COpy and paste into container. is there anything that would read the record and prompt the same dialog?
Fenton Posted July 8, 2008 Posted July 8, 2008 (edited) You could Validate the container field, in its definition: Length ( container field ) ≤ 204800 Then show a message (option at the bottom). Also uncheck the ( ) Allow user to override (at the top), if you want to really stop them. Edited July 8, 2008 by Guest
Recommended Posts
This topic is 6042 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now