Criollo icon indicating copy to clipboard operation
Criollo copied to clipboard

Multipart file upload does not work on iOS

Open ologon opened this issue 2 years ago • 2 comments

First of all thanks for the great library!

I'm encountering issues with file uploading on iOS, using the latest repository here on github. Specifically, the sample for file uploading (with "/mime" routing) in Criollo/Apps/Criollo iOS App does not appear to work correctly: when the form is submitted, the POST request.body and request.files are always empty. Form types other than multipart seems to work fine (but of course file uploads are not possible)

I am testing from a mac with Safari & Firefox connecting to Criollo server on iOS. (Haven't tested if it works the other way around)

ologon avatar Oct 13 '21 10:10 ologon

Hi @ologon ,

Sounds weird, thanks for pointing it out. I'll look into it. I hope I didn't break it :)

Would be interesting to know if it's only an iOS thing.

Thanks for trying Criollo!

Best, Catalin

thecatalinstan avatar Oct 13 '21 21:10 thecatalinstan

@thecatalinstan

Thank you!

Would be interesting to know if it's only an iOS thing.

I've tried running the Criollo server on osx and had the same issue, so it looks like it's not specific to iOS.

EDIT: After a bit of further testing, apparently the latest pod release (1.0.1) does not have this issue, so it only happens with the latest code (The reason I'm using the master branch is that openSSL gave me troubles building for the iOS simulator on my M1 mac, and the latest criollo does not depend on it)

ologon avatar Oct 14 '21 03:10 ologon