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

fix: collection upload with relative path #73

Merged
merged 3 commits into from
Jan 22, 2021

Conversation

agazso
Copy link
Member

@agazso agazso commented Jan 20, 2021

I wrote a small node js command line tool to upload a directory with an indexDocument. Using the uploadFilesFromDirectory it ended up in a redirect loop (similar to ethersphere/bee#999).

It turns out the implementation had the same issue that the tar + curl approach has. The solution was to store the directory path separate from the paths stored in the manifest.

Also added a test for the missing case when using indexDocument with uploadFilesFromDirectory.

@agazso agazso merged commit b8f5c90 into master Jan 22, 2021
@agazso agazso deleted the fix/collection-upload-relative-path branch January 22, 2021 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants