@muhgholy/next-drive 3.5.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -279,6 +279,7 @@ const file = await driveUpload(
279
279
  { userId: "123" },
280
280
  {
281
281
  name: "document.txt",
282
+ mime: "text/plain", // Optional: specify MIME type
282
283
  }
283
284
  );
284
285
  ```
@@ -290,6 +291,7 @@ const file = await driveUpload(
290
291
  | `name` | `string` | Yes | File name with extension |
291
292
  | `parentId` | `string \| null` | No | Parent folder ID (null or 'root' for root) |
292
293
  | `accountId` | `string` | No | Storage account ID ('LOCAL' for local storage) |
294
+ | `mime` | `string` | No | MIME type (auto-detected from extension if not provided) |
293
295
  | `enforce` | `boolean` | No | Bypass quota check (default: false) |
294
296
 
295
297
  ### Get Signed URL