Managing File Size Restrictions

Scenario:

Files exceeding 10MB are not handled, which could cause failures. If the file size exceeds 10MB throw an error in the response.

Steps:

  • In script add a function to check the size of the file.

  • If the size of file is greater than 10 MB, then throw an error in the response.

Leave a comment

Your email address will not be published. Required fields are marked *