-
Notifications
You must be signed in to change notification settings - Fork 53
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
Issue with PLUPLOAD_BASE_URL #69
Comments
I'd put a debugger here: https://github.com/tim-evans/ember-plupload/blob/master/app/components/pl-uploader.js#L6 To see what happens :) |
Thanks Tim!
The ember-plupload/config/environment.js file is empty for me, and debugger statements won't work there. I'm assuming the information from my environment.js file gets loaded in here, so that's probably not the problem?
Still seeing: Any idea where this problem may lie? Has anyone else had trouble with the base url? |
It looks like PLUPLOAD_BASE_URL is for assets paths (swf, etc), not for the upload. Just specify an absolute URI in the upload function call and it should work: import config from '../config/environment';
...
file.upload(`${config.API_BASE_URL}/uploads/license`).then(... |
I am trying to upload files to my express server, so I added this to my config/environment.js file:
ENV.PLUPLOAD_BASE_URL = "http://localhost:3200"
Problem is, it's still sending the requests to 4200 -- any idea where I might have gone wrong here?
The text was updated successfully, but these errors were encountered: