Saving local webpage via connector
Hello everyone,
Sorry for the novice question. I've created an .html file locally (make using Bookdown in R) and I want to save it to Zotero. The file has an audio and a video clip embedded into it, so simply dragging the file into Zotero does not seem to work.
When trying to run the connector in Firefox on a local file, nothing happens.
Is there any way of saving a .html file to Zotero from local storage together with any supporting media?
Please help. Thanks very much
Sorry for the novice question. I've created an .html file locally (make using Bookdown in R) and I want to save it to Zotero. The file has an audio and a video clip embedded into it, so simply dragging the file into Zotero does not seem to work.
When trying to run the connector in Firefox on a local file, nothing happens.
Is there any way of saving a .html file to Zotero from local storage together with any supporting media?
Please help. Thanks very much
When you say the audio and video are embedded, what do you mean? If the files are in the same directory as the original HTML file, you can just copy those files into the storage directory of the HTML file you added. Right-click on the attachment, select Show File, and then copy the files into that folder.
All Zotero does to display an HTML file is open it in your default browser at its file:// URL, so it will work exactly the same way as when the file is elsewhere on your disk. The only exception is if the files are in a subfolder, in which case you'd have to move them into the same folder and update the references in the file to not include a folder.
Yes, by embedded I mean that there are audio + video files in the same directory as the .html file. Copying them into the storage folder of the .html works great for the computer I am working on, so thanks so much for that!
However, the challenge now becomes, how do I make the .html work when viewed from online? I.e. what URL should be used in the .html files to call the audio and video files?
Is that even possible?
Thanks again!
@dstillman I'm sorry i don't follow. Right now this is my workflow, and it does not work:
- Drag the .HTML file into Zotero.
- Create parent item and make it type "webpage"
- Open storage of item, and copy image/audio/video files into folder.
- When viewed from my local computer, .HTML works fine.
- When viewed from zotero.org (online) the .HTML file can't find the additional files.
What do I need to do differently?
Sorry for being obtuse, and thanks so much!
Alternatively, you can temporarily disable auto-sync before adding the HTML file and the other files, so that the initial upload includes those files.
I need to test it a bit more vigorously (different files, mobile etc.), but right now it seems like it works great.
Thanks!