Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload Failed When File Is In Deeply Nested Folder Structure #5517

Open
2 tasks done
Romeithius opened this issue Nov 15, 2024 · 0 comments
Open
2 tasks done

Upload Failed When File Is In Deeply Nested Folder Structure #5517

Romeithius opened this issue Nov 15, 2024 · 0 comments
Labels

Comments

@Romeithius
Copy link

Romeithius commented Nov 15, 2024

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Steps to reproduce

  • Create a local deeply nested folder structure (e.g. Folder ABCDEFGHIJKLMNOPQRSTUVWXYZ/Folder 123456789123456789/Folder ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789/Folder 123456789123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ/Folder 123456789123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789123456789)
  • Add File (e.g. WWWWWWWWWWWWWWWWWWWWWWWWWW.pdf) into Folder 123456789123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
  • Browse Folders and select the root folder of Folder ABCDEFGHIJKLMNOPQRSTUVWXYZ (even if you selected a subfolder that worked as a root, it does not work as a subfolder if the length including the root folder is too long).

If this file was uploaded as a file and not through the folder selection Uppy renames the file with ~ to reduce its length. While I don't like that it allow the upload to work. It seems the issue is due to the internal id being too long. If this is uploaded alongside other files, they work but when working with presigned urls Uppy stops the progression and results in a bad state for the "successful" files). Also the error returned by Uppy is "Unknown error".

NOTE: This file shouldn't open on Windows due to the folder length even though nothing is wrong with the file itself and if moved it works as expected.

Expected behavior

  • Uppy should manage the id in a way that doesn't impact a successful upload

Actual behavior

  • Uppy errors out and crashes the upload progression of all files uploaded alongside the problem file
@Romeithius Romeithius added the Bug label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant