Slowness in file upload in File Manager widget

0
Hello All, I have configured a file manager to only upload and when user tries to upload a 10 MB of file it is taking around 20 to 30 seconds just to complete the upload. No complex microflows after the page is submitted.Any solution to reduce this upload time. TIA
asked
2 answers
1

If a 10 MB file takes 20–30 seconds, the issue is usually not the File Manager widget itself.


Most of the time, the bottleneck is in the environment or network. Check things like server performance, network latency, reverse proxy, or antivirus scanning. These are very common causes of slow uploads.


Also verify that there are no before/after commit events on your file entity. Even if your page has no microflow, these events can still slow things down.


Finally, try uploading from different environments or networks. If the speed changes, the problem is clearly outside Mendix.


If this resolves your issue, please mark it as accepted.


answered
0

Hi,


For a ~10 MB file, 20–30 seconds is slower than expected, but this is usually environment or network related, not the widget itself.

Common causes & fixes

1. Cloud node / environment limitations

On Free/low-tier nodes:

  • Limited bandwidth and CPU
  • Upload goes through Mendix runtime → slower

Fix:

Test on a higher environment (or local vs cloud comparison)

2. Network latency (client → server)

Upload speed depends on:

  • User’s internet upload speed
  • Distance to Mendix server region

Fix:

  • Test from different network/location
  • Check browser dev tools → upload time

3. File storage configuration

If using external storage (S3, Azure Blob):

  • Upload may go via runtime (not direct) → slower

Fix:

  • Enable direct upload (pre-signed URLs) if using S3
  • Or verify connector configuration

4. Antivirus / browser scanning

Some environments scan uploads → adds delay

5. Widget configuration

Check:

  • Chunk upload enabled/disabled
  • File size limits
  • Multiple validation steps

6. Runtime processing

Even without microflows:

  • Mendix still processes FileDocument storage
  • Includes DB/file system write

How to debug properly

  • Use browser Network tab → check upload time vs server response time
  • Check Mendix logs (ConnectionBus, File handling)
  • Compare:
    • Local runtime
    • Cloud runtime

Optimization options

  • Use direct-to-storage upload (S3 pre-signed URL)
  • Reduce file size (compression if applicable)
  • Upgrade environment resources

Conclusion

The delay is typically due to network + environment + storage path, not the File Manager widget itself. The most effective improvement comes from direct file upload (bypassing runtime) or improving environment capacity.


answered