Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload image problem #1

Open
eiffelqiu opened this issue Mar 29, 2018 · 3 comments
Open

upload image problem #1

eiffelqiu opened this issue Mar 29, 2018 · 3 comments

Comments

@eiffelqiu
Copy link

when i created a MediaItem field and upload image in chisel, it will upload the image correctly but give a bad url, for example my parse appId is 'particle', it will give the image url something like this: http://particle_cluster/parse/files/particle/dc52b2a366bf2e39624d050212cf3c21____jpg.jpeg , how can i set particle_cluster to --serverURL domain.

@r3trosteve
Copy link
Member

Hmm that is strange, will take a look. And thanks for being our first public issue! Glad you’re giving Chisel a try 🤩

@eiffelqiu
Copy link
Author

to r3trosteve:
thank you for your reply.

I run chisel on my laptop and parse server on public website.

I access http://localhost:9000/ to customize Item in remote parse server.
everything is OK, the image is upload to the remote parse server, but the url is not correct.

when i get parse/classes/MediaItem/TL2Me0IboH
it reply with :

==================
{
"objectId": "TL2Me0IboH",
"name": "世界",
"type": "image/jpeg",
"file": {
"__type": "File",
"name": "dc52b2a366bf2e39624d050212cf3c21____jpg.jpeg",
"url": "http://particle_cluster/parse/files/particle/dc52b2a366bf2e39624d050212cf3c21____jpg.jpeg"
},
"assigned": false,
"site": {
"__type": "Pointer",
"className": "Site",
"objectId": "uLwpigPgCq"
},
"createdAt": "2018-03-29T05:59:15.488Z",
"updatedAt": "2018-03-29T05:59:15.488Z"
}

the image url IS NOT correct

http://particle_cluster/ should be the --serverURL' domain .

@Nes-si
Copy link
Collaborator

Nes-si commented Apr 3, 2018

Are you using our Parse Server setup (https://github.com/beachio/chisel-parse-server-starter) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants