Skip to content

Commit

Permalink
fix: download files (file name includes '#')
Browse files Browse the repository at this point in the history
  • Loading branch information
takuyaW committed Apr 3, 2019
1 parent 4a20c4c commit d52df6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monaca.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@
Monaca.prototype.downloadFile = function(projectId, remotePath, localPath) {
var deferred = Q.defer();

this._post('/project/' + projectId + '/file/read' + remotePath, { path: remotePath }).then(
this._post('/project/' + projectId + '/file/read/' + encodeURIComponent(remotePath), { path: remotePath }).then(
function(data) {
var parentDir = path.dirname(localPath);

Expand Down

0 comments on commit d52df6b

Please sign in to comment.