Hi!
I am working on a service endpoint where one can upload files to.
I have seen this: How do I post files/images to a service in appfarm? but I don`t seem to find the base64 pdf example that is referred to in the showroom.
I tried to base64 encode the files and upload those, but it is never decoded back from base64 and the files are “corrupt”,
Uploading the actual file, results in my service complaining about “File Content must be a string”.
I have set up my service the way kristian suggested in the original thread.
Marcus
Hi @marcus.rognes,
Thanks for your post. You can find the example you’re referring to here.
To make base64 encoding work as expected, the “Custom File Content Encoding” setting needs to be enabled manually on our side (see the last reply in your linked post). We’ve now activated it for your solution. If you refresh Create and have set everything up as shown in the example, it should work correctly.
Let us know if you still run into any issues!
Hi Simona
The example you pointed me to helped a lot, thanks!
The 50MB limit om “Max Payload Size” is probably going to be to small for us, Is it possible to make it larger?
It can also be a bit problematic with performance, converting large files to and from base64 a lot.
Would it be possible to just get/generate a pre signed upload url, so the client could upload directly to the storage server?
Hi @marcus.rognes,
The 50 MB limit is the maximum possible for “Max Payload Size,” so unfortunately, we can’t increase it beyond that.
It’s also not possible to use a presigned URL for direct uploads to storage at the moment. That said, we are planning improvements to file handling in Flows going forward, so this is definitely something we’re aware of.