Skip to content

Comments

Add no-zip option and compatibility with >2GB files#6

Open
MrVauxs wants to merge 9 commits intotrympet:masterfrom
MrVauxs:master
Open

Add no-zip option and compatibility with >2GB files#6
MrVauxs wants to merge 9 commits intotrympet:masterfrom
MrVauxs:master

Conversation

@MrVauxs
Copy link

@MrVauxs MrVauxs commented Jun 24, 2024

  • Adds the no-zip option to the action, allowing for single-file uploads that are not zips. (Fixes Option to not zip files #4)
    If multiple files are to be uploaded, the script throws an error.
    This could (?) alternatively done by unzipping the uploaded zip in the webdav interface, but I don't know if its possible as I am not familiar with the webdav-client package. This would also require sharing the entire root upload folder.
  • Adds a DIRECT_SHAREABLE_URL output for use in other actions.
  • Replaces await fs.readFile with fsSync.createReadStream so Node doesnt explode with files over 2 GB.

Includes #5 due to updating dependencies. There aren't any new ones added.

@MrVauxs MrVauxs changed the title Add no-zip option Add no-zip option, shareableUrl output, and compatibility with >2GB files Jun 24, 2024
@MrVauxs MrVauxs changed the title Add no-zip option, shareableUrl output, and compatibility with >2GB files Add no-zip option and compatibility with >2GB files Jun 24, 2024
@trympet
Copy link
Owner

trympet commented Jun 25, 2024

This looks great, appreciate your contribution @MrVauxs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to not zip files

2 participants