question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Drag and drop vs browse

See original GitHub issue

Drag and dropping a file behaves differently when using the browse feature. I am using the dashboard with XHRUpload to upload files/folder.

When I use the browse link to upload a file, say, hello.txt the relativePath shows null but when I drag and drop the same file on it the relative path is /hellow.txt, which is guess is wrong, it should still be null knowing that it’s not a folder but a single file.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
arturicommented, May 23, 2019

This is also mildly connected to the functionality of selecting folders via the ‘My Device’ file input, I think it may be doable, should I look into it?

Yes, but from my last research on selecting folders, if you allow folders in “select file” dialog (via file input), you can only select folders then — no files. So we’d need to add a separate icon to the Dashboard, “select folder”, and there’s not much we can do for DragDrop plugin. More thoughts on this appreciated 👍

0reactions
lakesarecommented, May 27, 2019

Clarification: we will make nonfoldered files’ .relativePaths always null, whether they were dropped along with some folder, or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Drag & Drop or Browse - File upload Feature using HTML ...
Drag and Drop file upload means you can upload the file by drag & drop. Drag and Drop interfaces permit web applications to...
Read more >
Drag & Drop or Browse - File Upload Tutorial using HTML ...
Most of the websites on internet, In order to upload file over the internet we used to use the browse feature previously. But...
Read more >
Drag & Drop or Browse - File Upload using HTML CSS and ...
Drag and drop file upload refers to the ability to drag and drop a file into place. Web applications may drag and drop...
Read more >
File drag and drop - Web APIs | MDN
HTML Drag and Drop interfaces enable web applications to drag and drop files on a web page. This document describes how an application...
Read more >
Drag & Drop or Browse - File upload Feature in JavaScript
To create this program [Drag & Drop or Browse – File upload Feature]. First, you need to create three files, HTML File, CSS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found