Add hint that drag/drop is possible when adding images #8626

Closed
opened 2025-12-29 20:39:04 +01:00 by adam · 3 comments
Owner

Originally created by @pv2b on GitHub (Sep 16, 2023).

NetBox version

v3.6.1.

Feature type

Change to existing functionality

Proposed functionality

I propose adding a hint label to /extras/image-attachments/add reading something like:

You can also drag and drop an image file onto the field above to upload an image.

Use case

Being able to drag/drop images is a cool feature, and it's a great timesaver for me, that way I don't have to to find the same image twice when uploading images from a large library. Putting a text label here would help inform other users about this cool pre-existing functionality that as far as I can tell is completely undocumented.

Database changes

None.

External dependencies

None.

Originally created by @pv2b on GitHub (Sep 16, 2023). ### NetBox version v3.6.1. ### Feature type Change to existing functionality ### Proposed functionality I propose adding a hint label to /extras/image-attachments/add reading something like: > You can also drag and drop an image file onto the field above to upload an image. ### Use case Being able to drag/drop images is a cool feature, and it's a great timesaver for me, that way I don't have to to find the same image twice when uploading images from a large library. Putting a text label here would help inform other users about this cool pre-existing functionality that as far as I can tell is completely undocumented. ### Database changes None. ### External dependencies None.
adam added the type: feature label 2025-12-29 20:39:04 +01:00
adam closed this issue 2025-12-29 20:39:04 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 18, 2023):

NetBox itself has no such feature. The ability to drag and drop a file into the form is browser-dependent, and we can't assume that it's supported.

@jeremystretch commented on GitHub (Sep 18, 2023): NetBox itself has no such feature. The ability to drag and drop a file into the form is browser-dependent, and we can't assume that it's supported.
Author
Owner

@pv2b commented on GitHub (Sep 18, 2023):

NetBox itself has no such feature. The ability to drag and drop a file into the form is browser-dependent, and we can't assume that it's supported.

Oh, today I learned!

I just confirmed what you said by creating an extremely simple HTML file containing nothing more than:

<input type="file" />

And at least on Firefox and Edge that already seems to support drag-drop.

I assumed it was something NetBox got batteries-included through one of the frameworks used, (and a NetBox feature even if pulled in through those libraries), I didn't imagine it's a baseline browser feature. Neat!

That said, if it's supported on modern Chromium and Gecko-based browsers, isn't that pretty much 100% of everything any NetBox user would be using already? I.e. what if we just assumed, would it be so bad? Are there enough users on desktop platforms that don't support this kind of functionality that it makes sense to care about them?

(Of course on mobile it might not work but that's because you can't really drag/drop stuff onto an input field on mobile, but that's neither here nor there.)

@pv2b commented on GitHub (Sep 18, 2023): > NetBox itself has no such feature. The ability to drag and drop a file into the form is browser-dependent, and we can't assume that it's supported. Oh, today I learned! I just confirmed what you said by creating an extremely simple HTML file containing nothing more than: ``` <input type="file" /> ``` And at least on Firefox and Edge that already seems to support drag-drop. I assumed it was something NetBox got batteries-included through one of the frameworks used, (and a NetBox feature even if pulled in through those libraries), I didn't imagine it's a baseline browser feature. Neat! That said, if it's supported on modern Chromium and Gecko-based browsers, isn't that pretty much 100% of everything any NetBox user would be using already? I.e. what if we just assumed, would it be so bad? Are there enough users on desktop platforms that don't support this kind of functionality that it makes sense to care about them? (Of course on mobile it might not work but that's because you can't really drag/drop stuff onto an input field on mobile, but that's neither here nor there.)
Author
Owner

@jeremystretch commented on GitHub (Sep 20, 2023):

I.e. what if we just assumed, would it be so bad?

It is not NetBox's place to inform the user about the capabilities (or lack thereof) of his or her browser.

@jeremystretch commented on GitHub (Sep 20, 2023): > I.e. what if we just assumed, would it be so bad? It is not NetBox's place to inform the user about the capabilities (or lack thereof) of his or her browser.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8626