3 ms·
If you're trying file uploads that directly sit within your application, AppEngine (sort of) discourages that, the right approach would be to let your app uploa
by neya 8y ago
If you're trying file uploads that directly sit within your application, AppEngine (sort of) discourages that, the right approach would be to let your app upload the files to a CDN (like google cloud storage, if you're on GCP) and manage access through ACLs.
- dantiberian 8y agoYeah, the issue (which I didn't explain well) is that Deps is a Maven repository and needs to speak the Maven protocol. That makes it difficult to do the ACL signing for direct uploads, especially if I want to make it clean for users configuring it.
- stefano 8y agoYou can have the client upload to a cloud storage bucket, then notify the server that the file is ready. Upon receiving the notification, the server can start a background task that reads the file from the bucket and uploads it to the Maven repository. It's a few extra steps for something that should be simpler, but it's workable.
- dantiberian 8y agoThe client in this case is Maven, SBT, Leiningen, e.t.c., so I don't think I can get that kind of control over how Maven would upload the files.
- foota 8y agoI'm curious, could you use a 307 redirect to redirect the user agent to a signed upload URL?