This browser extension allows you to easily upload media files to your Owncloud instance directly from your browser. It's compatible with Firefox, Chrome, and their respective derivatives (e.g., Firefox-based browsers like Zen, and Chromium-based browsers like Brave or Edge).
- Right-click context menu for uploading images, videos, and audio files to Owncloud
- Configurable Owncloud server settings
- Folder browser to select upload destination
- Optional URL copying after successful upload
- Firefox, Firefox-based browser, Chrome, or any Chromium-based browser
- Node.js and npm (for signing the Firefox extension)
- An Owncloud instance that is exposed to the internet (local instances may not work)
- Clone or download this repository to your local machine.
- Open Firefox and navigate to
about:debugging
. - Click on "This Firefox" in the left sidebar.
- Click on the "Load Temporary Add-on" button.
- Navigate to the
firefox
directory in the repository and select themanifest.json
file.
The extension will now be loaded temporarily and will remain active until you restart the browser.
- Clone or download this repository to your local machine.
- Open Chrome and navigate to
chrome://extensions/
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the
chrome
directory from the repository.
The extension will now be loaded and active in Chrome.
-
Install web-ext globally:
npm install --global web-ext
-
Create a Mozilla Add-ons account at https://addons.mozilla.org/en-US/developers/ if you don't already have one.
-
Generate an API key and secret:
- Go to https://addons.mozilla.org/en-US/developers/addon/api/key/
- Note down your JWT issuer (API key) and JWT secret (API secret)
-
In your terminal, navigate to the
firefox
directory containing the extension files. -
Run the following command, replacing
your_api_key
andyour_api_secret
with your actual credentials:web-ext sign --api-key=your_api_key --api-secret=your_api_secret --channel=unlisted
-
Wait for the signing process to complete. This may take a few minutes.
-
Once complete, web-ext will generate a signed
.xpi
file. -
To install, open Firefox and go to
about:addons
. -
Click the gear icon and select "Install Add-on From File".
-
Choose the
.xpi
file that was created during the signing process.
- Open Chrome and go to
chrome://extensions/
. - Enable "Developer mode" in the top right corner.
- Click "Pack extension".
- Browse to the
chrome
folder of this project and select it. - Chrome will create a
.crx
file (the packaged extension) and a.pem
file (the private key for updates). - To install, users can drag and drop the
.crx
file into their Chrome browser.
Note: Due to security policies, some browsers may prevent installation of extensions not from their official store. In this case, you may need to publish your extension to the respective store for wider distribution.
To configure the extension:
- Click on the extension icon in the browser toolbar.
- Select "Options" or "Preferences".
- Enter your Owncloud server URL, username, and password.
- Optionally, enable or disable URL copying after upload.
- Click "Save and Test Connection" to verify your settings.
- Use the folder browser to select your default upload destination.
- After installation, right-click on any image, video, or audio file on a webpage.
- Select "Upload to Owncloud" from the context menu.
- If you haven't configured the extension yet, you'll be prompted to do so. Enter your Owncloud server details in the options page.
- Choose the destination folder for uploads.
- The file will be uploaded to your Owncloud instance.
- If you encounter any issues with uploading, check your Owncloud server URL and credentials in the extension options.
- Ensure your Owncloud server is accessible and that you have the necessary permissions to upload files.
- For temporary installations, remember that the extension will need to be reloaded every time you restart your browser.
- If you're using a Chromium-based browser and can't install the
.crx
file directly, try loading it as an unpacked extension in developer mode.
This extension stores your Owncloud credentials locally in your browser. Always ensure you're using it on a secure device. The extension communicates directly with your specified Owncloud server and does not send data to any third parties.
Contributions to improve the extension are welcome. Please feel free to submit issues or pull requests on the project repository.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.