OpenLightingProject / open-fixture-library

A library and website for lighting technology's DMX fixture definition files.
https://open-fixture-library.org/
MIT License
189 stars 64 forks source link

Increase GDTF File Upload Size Limit #3818

Closed DaAwesomeP closed 6 months ago

DaAwesomeP commented 6 months ago

Hello,

I recently tried to upload an official Robe GDTF from here: https://gdtf-share.com/userPage.php?name=Robe%20Lighting%20s.r.o.&page=Revisions&fixtureId=472&rid=57681

However, this file is more than 5MB. Could a 10MB upload limit be considered?

Thanks, Perry

FloEdelmann commented 6 months ago

The current limit should be 50MB, not 5MB:

https://github.com/OpenLightingProject/open-fixture-library/blob/455d4bdfddbce3f060811ada836c985ec099700c/ui/api/index.js#L20

DaAwesomeP commented 6 months ago

See screenshot below, then it must be an artificial frontend limitation: image https://open-fixture-library.org/import-fixture-file

luc122c commented 6 months ago

It seems that the limit is imposed in the frontend: https://github.com/OpenLightingProject/open-fixture-library/blob/455d4bdfddbce3f060811ada836c985ec099700c/ui/pages/import-fixture-file.vue#L48-L53

I'll open a PR to amend it.