Page 2 of 2

cross-origin issue with files in appery DB

Posted: Fri Jan 29, 2016 4:17 pm
by Serhii Kulibaba

Are there any errors in the Weinre console https://devcenter.appery.io/documenta... ?
File was uploading successful in my browser (with disabled web security)


cross-origin issue with files in appery DB

Posted: Sat Jan 30, 2016 4:24 am
by EJLD

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.


cross-origin issue with files in appery DB

Posted: Sat Jun 04, 2016 12:25 am
by EJLD

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


cross-origin issue with files in appery DB

Posted: Sat Jun 04, 2016 2:25 pm
by Serhii Kulibaba

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.


cross-origin issue with files in appery DB

Posted: Sun Jun 05, 2016 11:07 pm
by EJLD

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