Remembering original local path when uploading media
-
I’m trying to use a wordpress install as a content management system for potential graphics in a graphic design firm. I’m using the Press This functionality to automatically create a new image post for potential images we find on the internet we might want to use. It works well and keeps track of where the image came from so that we can get high res images and pay for use rights. Both are important to us.
However, I also want to keep track of images I already have on my local computer/network. I can drag/drop from my desktop to the Press This page and I am given the options to upload to media and make the post. Cool. But I need to somehow remember where that image came from originally.
I see two options:
1) When the media is being uploaded and I am given a chance to enter description, alt tags, etc. have a box there that automatically stores the file path where the image came from. i.e. “c:\test\folder\location\imagename.jpg” or UNC path.
2) After the image is uploaded to the media and inserted into my new post, automatically add one line of text below the image with the UNC path to where the image came from on my network. Make this a hyperlink to the file or containing folder.Are either of these two possible? During the upload process, WordPress must know where the image came from. How do I use that in my post/media? Any code advice is greatly appreciated.
Thanks in advance.
The topic ‘Remembering original local path when uploading media’ is closed to new replies.