cross-origin issue with files in appery DB
Are there any errors in the Weinre console https://devcenter.appery.io/documenta... ?
File was uploading successful in my browser (with disabled web security)
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Are there any errors in the Weinre console https://devcenter.appery.io/documenta... ?
File was uploading successful in my browser (with disabled web security)
the problem is not to upload the file. this I can do successfully. the issue is to process the canvas of it to get the base64 data (code in my first post above dd Jan/18th). anyway, let me see how I can bypass that part by linking the app to the file collection instead of storing the base64 data in a field. I may come back to you if I cannot avoid using the base64 thk you for your time so far.
Hello, I found out something interesting (i mean annoying) :
1/ take pic with device camera service
2/ crop the image using canvas code and save the base64 string
3/ upload to DB by creating/updating record
there, 2 cases:
. if using regular appery UI services = no problem to create/update
. if using serverCode that incl. create/update = crossOrigin issue, the img's string is rejected
I tried to set the anonymous origin to the img, ... several things, nothing worked.
I'll bypass this issue using the standard services. however, if you had some advice to solve this issue in the serverCode, it would make the service quicker and easier to maintain from backend instead.
thks in advance,
Eric
Can you provide more details, screenshots or exact steps to reproduce this problem? Are they the same? I don't see your app in the shared list.
Hi Sergiy, I removed the serverCode part. Let me prepare a mockup and share it with you.
(meanwhile, in an other post, I'll ask for dynamic indexation according to MongoDB's methods, could you let me know ) good day