Issue with upload files on a local server after update to 1.6.1
See original GitHub issueCurrently trying to upgrade a project to Meteor 1.6.1.
I’ve experienced an issue where on my local server that runs on port 3000 files weren’t getting uploaded and I was getting a pretty vague error. After some investigation turns out the HTTP.call()s that happen in upload.js now fail because the port is missing. I’ve forked the package and created a simple fix for the issue here, just not sure it’s the best way to do it. Here’s the code I added that fixed the issue for me.
const port = location.port;
let _rootUrl = (window.__meteor_runtime_config__.MOBILE_ROOT_URL || window.__meteor_runtime_config__.ROOT_URL).replace(/\/+$/, '');
_rootUrl += port ? `:${port}` : ""; // concat the port of the server
I’ve made some other changes, like substituting underscore for lodash as Meteor is removing underscore from the defaults they include, so won’t submit a PR for this one yet.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Upload to external storage fails but creates .part file #9915
My nextcloud server has a similar issue. When I try to upload files to a folder just been created by nextcloud in the...
Read more >Microsoft Office Upload Center
Indicates that the file has changes pending upload, because uploads to the server have been paused. To upload these files, click Resume Uploads...
Read more >Manual upload of PAN OS file fails via GUI with message ...
Importing the file from a local scp/tftp server can solve the problem. Using scp/tftp to import the file directly saves the file to...
Read more >Element-IT software products news
Element-IT software news. Here can be found dates or products releases.
Read more >FileZilla - The free FTP solution
FileZilla - The free FTP solution for both client and server. Filezilla is open source software distributed free of charge.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Alright, thanks @dr-dimitru , just saying it behaves differently at least for me. I’ll change it to what you suggested, it should work as far as I can see.
Please, support this project by: