We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 965e94a + fc62294 commit 65f9ce4Copy full SHA for 65f9ce4
src/core/systems/ClientEditor.js
@@ -239,7 +239,7 @@ export class ClientEditor extends System {
239
if (url.startsWith('http')) { // Basic URL validation
240
const resp = await fetch(url)
241
const blob = await resp.blob()
242
- file = new File([blob], url.split('/').pop(), { type: resp.headers.get('content-type') })
+ file = new File([blob], new URL(url).pathname.split('/').pop(), { type: resp.headers.get('content-type') })
243
}
244
245
} else if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
0 commit comments