You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evertything makes sense. I thought today that it would be nice to associate the datasheet to a part and behold there is already an attachments area. Perfect.
My suggestion applys to both attaching picture, images, and whatever may be attached via the attachment areas. Allow pulling via hyperlink. Ex:
If I need a datasheet for a part say a resistor it seems like several extra steps to download the pdf, save the pdf, attach the pdf to InvenTree, then delete the local copy of the pdf.
It would be amazing if we could paste the link to the pdf into the attachment area and have it automatically download and link it.
I actually started looking into the pull-via-hyperlink approach (e.g. drag-and-drop an image or link from a browser).
However, two major issues:
The javascript required to do this is really complicated and seems to be vastly different per browser. And there's no guarantee it would remain supported.
It (IMO) could introduce security issues - at the very least this needs to be carefully considered
I think that the addition of drag-and-drop support for file attachment would be really useful, and relatively easy to achieve. The hyperlink stuff requires some further thought - and at this stage would require too much dev time which I think is better spent elsewhere (e.g. key functionality).
As I am adding parts to my own inventory from suppliers I am often just borrowing their pictures for the part. I have now come to realize they do not have a unique picture for everything. EX: 0805 Thick File Resistors will mainly use just one image. Sometimes there is a unique image per manufacture. Anyway, have you thought about that? Linking 1 image to multiple parts?
This is basically the same request as #1306
I was thinking of an easier method: copy-paste the hyperlink instead of drag-and-drop. @a7hybnj2 do you think that this approach would work for you?
@ivladz That would certainly be an improvement. I was thinking about it from the perspective of not just pulling images from websites. I will often take my own picture of the inventory which help identify it better than some of the generic pictures you find for parts online. I take a batch of photos then view my pictures in thumbnail view to be able to select the correct one. In certain application/websites (like github) you can drag and drop. Like ⇩when your making a comment (that arrow is pointing to the box that you drag them into).
Activity
SchrodingersGat commentedon Jan 9, 2020
I actually started looking into the pull-via-hyperlink approach (e.g. drag-and-drop an image or link from a browser).
However, two major issues:
I think that the addition of drag-and-drop support for file attachment would be really useful, and relatively easy to achieve. The hyperlink stuff requires some further thought - and at this stage would require too much dev time which I think is better spent elsewhere (e.g. key functionality).
a7hybnj2 commentedon Jan 9, 2020
LTS is important.
As I am adding parts to my own inventory from suppliers I am often just borrowing their pictures for the part. I have now come to realize they do not have a unique picture for everything. EX: 0805 Thick File Resistors will mainly use just one image. Sometimes there is a unique image per manufacture. Anyway, have you thought about that? Linking 1 image to multiple parts?
a7hybnj2 commentedon Jan 10, 2020
@SchrodingersGat Hey, I found a few sites like imgur, github, gitlab, ect. that have drag and drop capabilities. On all of these sites I can drag an image from one webpage and drop it into the drag and drop area... I don't know what that means but I was excited. If you did drag and drop maybe it would just magically allow drag and drop from other sites.
This is my test image: https://www.mouser.com/images/kemet/hd/SMD_MLCC_new_t.jpg
and I just draged it below
eeintech commentedon Oct 13, 2020
@a7hybnj2 I suggest you take a look at InvenTree's python interface: https://github.com/inventree/inventree-python
With a few lines of Python code you can download a picture/file from the supplier's website (wget for instance) and upload it to a specific part on InvenTree (Thumbnail or attachment, you have the options). If you have any issue or question, you can post them here: https://github.com/inventree/inventree-python/issues
ivladz commentedon Feb 26, 2021
This is basically the same request as #1306
I was thinking of an easier method: copy-paste the hyperlink instead of drag-and-drop. @a7hybnj2 do you think that this approach would work for you?
a7hybnj2 commentedon Feb 27, 2021
@ivladz That would certainly be an improvement. I was thinking about it from the perspective of not just pulling images from websites. I will often take my own picture of the inventory which help identify it better than some of the generic pictures you find for parts online. I take a batch of photos then view my pictures in thumbnail view to be able to select the correct one. In certain application/websites (like github) you can drag and drop. Like ⇩when your making a comment (that arrow is pointing to the box that you drag them into).
ivladz commentedon Feb 27, 2021
@a7hybnj2 Good point. I think overall several quality of life changes are needed for images/attachments:
In short, any one of them brings something to the table.
a7hybnj2 commentedon Feb 27, 2021
@ivladz I concur. Also the order you have listed seems like a good order of implementation because it seems to also be easiest to most difficult.
SchrodingersGat commentedon Aug 12, 2021
3/4 ain't bad ;)