Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/components/davros-uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class DavrosUploader extends Component {

var fullPath = ['/', this.uploadLocation, path].join('');

yield File.ensureCollectionExists(fullPath).then(() => {
yield File.ensureCollectionExists(decodeURI(fullPath)).then(() => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than encoding and then decoding, can we defer the encoding step or do it on a parallel path? (I'm actually not even sure why URI-encoding is happening in the first place.)

return file.upload('/api/upload', {
data: {
destination: fullPath,
Expand Down