Page 1 of 1
saving drop down and image data in the same form to a collection
Posted: Tue Jul 15, 2014 6:38 pm
by Nalini
Please, I have already read the documentation. I am not a novice and please can you respond today?
Is there something weird about creating a form which sends text input, drop down input and photo to a collection? My collection seem to work without the photo but stops working with the photo. Photo works well being mapped to buffer and image preview but doesn't seem to work with the 'create service'
saving drop down and image data in the same form to a collection
Posted: Tue Jul 15, 2014 7:28 pm
by Kateryna Grynko
Hi,
Is it a service to create file, or do you save an image in a base64 string?
saving drop down and image data in the same form to a collection
Posted: Tue Jul 15, 2014 7:42 pm
by Nalini
the upload image button actually saves the image in base64 string...sends to preview image and local storage variable imagebuffer i think it's called.
saving drop down and image data in the same form to a collection
Posted: Tue Jul 15, 2014 9:24 pm
by Kateryna Grynko
saving drop down and image data in the same form to a collection
Posted: Tue Jul 15, 2014 9:42 pm
by Nalini
I pretty much already did this. What you haven't answered is whether the photos have to be in their own collection or if I can have other variables in the collection. Your support is incredibly frustrating!!!!!
saving drop down and image data in the same form to a collection
Posted: Tue Jul 15, 2014 9:49 pm
by Nalini
I get this error in the console, any ideas what this means?
Failed to load resource: the server responded with a status of 400 (Bad Request) https://api.appery.io/rest/1/db/colle...
saving drop down and image data in the same form to a collection
Posted: Tue Jul 15, 2014 10:29 pm
by Nalini
saving drop down and image data in the same form to a collection
Posted: Wed Jul 16, 2014 8:42 am
by Evgene Karachevtsev
Hello,
Could you please look in the console on tab Network what is sent by the service and what comes back as reply?
And a little advise if you let me: it is not the best idea to keep images in the data collection. You should keep them in the Files collection, and in data collection keep image name