Skip to content

Commit 9bf56fc

Browse files
authored
feat: Enhance upload and preview experience (#7)
* Enhance upload and preview functionality - Updated README.md to reflect changes in the upload process, introducing a custom upload panel with drag-and-drop support, progress tracking, and improved folder selection. - Enhanced the asset preview feature to include a lightbox for full-size viewing, improved metadata display, and better handling of asset types. - Refactored upload widget to support dynamic folder selection and improved error handling during uploads. - Added functionality to prevent multiple preview panels for the same asset and improved UI responsiveness. * Fix warning
1 parent 2b3630a commit 9bf56fc

7 files changed

Lines changed: 1841 additions & 503 deletions

File tree

README.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Easily explore, search, preview, and upload Cloudinary assets directly inside Vi
1212
- **Search & Filter** – Quickly locate assets by public ID or type
1313
- **Optimized Preview** – Preview images/videos with Cloudinary transformations applied (`f_auto`, `q_auto`)
1414
- **Right-click Actions** – Copy Public ID or URL instantly
15-
- **Upload Widget** – Upload directly to root or folder via Cloudinary's embedded widget
15+
- **Custom Upload Panel** – Upload files via drag-and-drop, file browser, or remote URL with progress tracking
1616
- **Environment Switching** – Switch between different product environments defined in config
1717
- **Status Bar Indicator** – Shows the active Cloudinary environment
1818

@@ -78,10 +78,22 @@ Once a valid configuration has been added, the active environment will be shown
7878
- Select from configured environments
7979

8080
### Upload
81-
- Click Upload from the title bar to upload to the root, or click **Upload here** on a folder entry to upload to that folder.
82-
- Alternatively, run `Cloudinary: Upload`.
83-
- **Upload Presets**: The extension automatically detects and lets you choose from your configured upload presets before uploading. Upload presets allow you to define upload parameters like transformations, folder destinations, tags, and processing options that are applied consistently to your uploads.
84-
- **Learn more**: See the [Cloudinary Upload Presets documentation](https://cloudinary.com/documentation/upload_presets) for details on creating and configuring upload presets for different use cases.
81+
82+
- Click **Upload** from the title bar to open the upload panel, or click **Upload here** on a folder entry to open with that folder pre-selected.
83+
- Alternatively, run `Cloudinary: Upload` from the command palette.
84+
85+
**Upload Panel Features:**
86+
- **Drag & Drop** – Drag files directly onto the drop zone
87+
- **File Browser** – Click "Browse Files" to select files from your system
88+
- **Remote URL** – Paste a URL to upload from a remote source
89+
- **Folder Selection** – Choose the destination folder from a dropdown
90+
- **Upload Presets** – Select from your configured upload presets (view preset settings with the "Settings" toggle)
91+
- **Custom Public ID** – Specify a custom public ID for single file uploads
92+
- **Tags** – Add comma-separated tags to your uploads
93+
- **Progress Tracking** – See real-time upload progress for each file
94+
- **Uploaded Assets** – View thumbnails of uploaded assets, click to preview, copy URL or public ID
95+
96+
**Learn more**: See the [Cloudinary Upload Presets documentation](https://cloudinary.com/documentation/upload_presets) for details on creating and configuring upload presets.
8597

8698
![Uploading assets](https://res.cloudinary.com/demo/video/upload/w_1200/f_auto:animated/q_auto/e_accelerate:100/e_loop/docs/vscode-extension-vid3)
8799

@@ -97,8 +109,14 @@ Once a valid configuration has been added, the active environment will be shown
97109
- **Copy Secure URL**
98110

99111
### Preview Assets
100-
- Click any asset to open a preview webview
112+
- Click any asset to open a preview panel
101113
- Supports images, videos, and raw files
114+
- **Compact Preview** – Assets display at a smaller size with an enlarge button
115+
- **Full-Size View** – Click the enlarge button to open a lightbox with the full-size asset
116+
- **Asset Info** – View public ID, dimensions, file size, and original filename
117+
- **Metadata** – View tags, context metadata, and structured metadata
118+
- **URLs** – Copy original or optimized URLs with one click
119+
- **Type Icons** – Tab icons indicate asset type (image, video, or file)
102120

103121
### Refresh Tree
104122
- Click "Refresh" to reload the tree
@@ -108,7 +126,7 @@ Once a valid configuration has been added, the active environment will be shown
108126
## Known Limitations
109127
- Asset filtering is limited to basic types (image, video, raw)
110128
- No options to control number of items returned in tree or root folder
111-
- Drag and drop and pasting URLs into the Upload widget is not supported yet
129+
- Folder dropdown in upload panel only shows folders that have been browsed in the tree view
112130

113131
---
114132

resources/icon-file.svg

Lines changed: 3 additions & 0 deletions
Loading

resources/icon-image.svg

Lines changed: 3 additions & 0 deletions
Loading

resources/icon-video.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)