@muhgholy/next-drive 4.23.10 → 4.23.13

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.
@@ -296,7 +296,7 @@ var getChunkSize = (fileSize) => {
296
296
  if (fileSize < 1024 * 1024 * 1024) return 8 * 1024 * 1024;
297
297
  return 16 * 1024 * 1024;
298
298
  };
299
- var useUpload = (apiEndpoint, activeAccountId, withCredentials = false, onUploadComplete, unauthenticated = false) => {
299
+ var useUpload = (apiEndpoint, activeAccountId, withCredentials = false, onUploadComplete) => {
300
300
  const [uploads, setUploads] = useState([]);
301
301
  const abortControllers = useRef(/* @__PURE__ */ new Map());
302
302
  const filesRef = useRef(/* @__PURE__ */ new Map());
@@ -380,7 +380,6 @@ var useUpload = (apiEndpoint, activeAccountId, withCredentials = false, onUpload
380
380
  formData.append("fileType", file.type);
381
381
  formData.append("folderId", folderId || "root");
382
382
  if (driveId) formData.append("driveId", driveId);
383
- if (unauthenticated) formData.append("unauthenticated", "true");
384
383
  let attempts = 0;
385
384
  let success = false;
386
385
  while (!success && attempts < 3 && !controller.signal.aborted) {
@@ -3130,7 +3129,7 @@ var DriveFileChooser = (props) => {
3130
3129
  onChange(uploaded);
3131
3130
  }
3132
3131
  }, [multiple, onChange]);
3133
- const { uploads, uploadFiles } = useUpload(apiEndpoint, activeAccountId, withCredentials, handleUploaded, unauthenticatedMode);
3132
+ const { uploads, uploadFiles } = useUpload(apiEndpoint, activeAccountId, withCredentials, handleUploaded);
3134
3133
  const openPicker = useCallback(() => {
3135
3134
  if (unauthenticatedMode) fileInputRef.current?.click();
3136
3135
  else setIsOpen(true);