Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add routes for /img/ with configurable upload limit #588

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

digitalsadhu
Copy link
Member

Step 3 of adding support for an /img namespace to Eik servers

Needs: eik-lib/common#326 and eik-lib/core#440

This PR completes the work needed on the server side. Subsequent work may need to be done in the CLI to add support for uploading to /img. (Or not, it might just work since it's just an additional option for the type field.

@digitalsadhu digitalsadhu requested review from wkillerud, leftieFriele, trygve-lie, tor0405 and flatoy and removed request for wkillerud August 13, 2024 20:58
lib/main.js Outdated
@@ -20,6 +20,7 @@ import * as utils from './utils.js';
* @property {string} [notFoundCacheControl="public, max-age=5"]
* @property {number} [pkgMaxFileSize=10000000] The limit in bytes before PUT /pkg/ starts returning 413 Content Too Large
* @property {number} [mapMaxFileSize=1000000] The limit in bytes before PUT /map/ starts returning 413 Content Too Large
* @property {number} [imgMaxFileSize=10000000] The limit in bytes before PUT /img/ starts returning 413 Content Too Large
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we maybe want to set the default here higher, like 20_000_000?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err, I just realised, we don't actually set default values, we just say we do in the types...

@digitalsadhu digitalsadhu merged commit 3e1a166 into main Aug 14, 2024
4 checks passed
@digitalsadhu digitalsadhu deleted the add_support_for_img_scope branch August 14, 2024 21:15
Copy link

🎉 This issue has been resolved in version 2.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants