Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6042 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

  • 2 weeks later...
Posted

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

  • 2 months later...
Posted

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?

Posted (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 by Guest

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.