Skip to main content
1. New

How to enforce file-size limits on file uploads in Moveworks Script Actions?

  • March 6, 2026
  • 3 replies
  • 38 views

Hi team,
I’m trying to enforce a 1MB file‑size limit on file uploads captured through a Moveworks slot. I attempted this using a Script Action, but it appears the approach won’t work because:

  • The location field of an uploaded file is not a valid URL that can be fetched.
  • Script Actions run in a sandbox and cannot directly access Moveworks internal file storage.
  • Because of this, the script cannot read the file bytes or calculate file size, so validation never triggers.

I wanted to check whether Moveworks currently provides any supported method or API to validate file size before sending the file to a destination system via HTTP Action.

Is there an officially recommended pattern or upcoming feature for this?

Thanks in advance for any guidance

3 replies

Kevin Mok
Forum|alt.badge.img+2
  • Community Manager
  • March 9, 2026

Hey ​@Ranjini - There currently isn’t a way to check the size of the file slot, since you cannot read or modify its content.

Can you explain your use case? Is there a limit on the application you are uploading to?


  • Author
  • New Participant
  • March 23, 2026

Hi! Yes, that is exactly the issue. The external application we are uploading the file to has a strict size limit of 1MB. Since we cannot natively validate the file size within the Moveworks file slot before executing the API call, we are trying to figure out the best way to handle files that exceed this 1MB limit so the upload doesn't just silently fail.


Kevin Mok
Forum|alt.badge.img+2
  • Community Manager
  • March 26, 2026

That makes sense, I will convert this post into an idea and track it as a feature request.

 

Thanks for bringing it up!