Skip to content

Conversation

@xabg2
Copy link
Contributor

@xabg2 xabg2 commented Dec 17, 2025

Description

Allow the user to create empty files.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Additional Notes

The status of this PR has been updated back to “Draft” because we must wait for the other platforms to allow empty files to upload/download empty files, but the request can be reviewed in the meantime so that it can be implemented when necessary.

@xabg2 xabg2 self-assigned this Dec 17, 2025
@xabg2 xabg2 requested review from a team, CandelR and larryrider as code owners December 17, 2025 08:11
@xabg2 xabg2 added the enhancement New feature or request label Dec 17, 2025
@xabg2 xabg2 marked this pull request as draft December 17, 2025 08:11
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 17, 2025

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9d2aa18
Status: ✅  Deploy successful!
Preview URL: https://5b412906.drive-web.pages.dev
Branch Preview URL: https://feature-upload-empty-files.drive-web.pages.dev

View logs

@xabg2 xabg2 marked this pull request as ready for review December 18, 2025 11:04
@xabg2 xabg2 marked this pull request as draft December 18, 2025 11:09
Comment on lines +48 to +50
if (!fileId) {
throw new FileIdRequiredError();
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left this comment in order to check if the upload of empty files are already implemented in backend for workspaces in order to remove this check


const isWorkspacesUpload = workspaceId && workspacesToken;

if (isFileEmpty(file.content) && !isWorkspacesUpload) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left this comment in order to check if the upload of empty files are already implemented in backend for workspaces to remove this condition && !isWorkspacesUpload

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants