Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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)

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

cross-origin issue with files in appery DB

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.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

cross-origin issue with files in appery DB

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

cross-origin issue with files in appery DB

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.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

cross-origin issue with files in appery DB

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

Return to “Issues”