Skip to content

Adding file uploading to server directories - #2571

Closed
xyzbilal wants to merge 14 commits into
serverpod:mainfrom
xyzbilal:main
Closed

xyzbilal wants to merge 14 commits into
serverpod:mainfrom
xyzbilal:main

Conversation

@xyzbilal

@xyzbilal xyzbilal commented Aug 6, 2024

Copy link
Copy Markdown

This pr adds functionality to upload files to servers defined directory instead of database.

adds more file types for content type.

also adresses this issue of 2562

to use this functions you must define storageId as 'file' in your endpoint and the other usage are same as DatabaseCloudStorage.

Pre-launch Checklist

  • [ x ] I read the Contribute page and followed the process outlined there for submitting PRs.
  • [ x ] This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • [ x ] I read and followed the Dart Style Guide and formatted the code with dart format.
  • [ x ] I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

If you need help, consider asking for advice on the discussion board.

Breaking changes

If you have done any breaking changes, make sure to outline them here, so that they can be included in the notes for the next release.

@github-actions

github-actions Bot commented Aug 6, 2024 •

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@xyzbilal xyzbilal mentioned this pull request Aug 6, 2024
@xyzbilal

xyzbilal commented Aug 7, 2024

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@xyzbilal

xyzbilal commented Aug 7, 2024

Copy link
Copy Markdown
Author

recheck

@xyzbilal

Copy link
Copy Markdown
Author

Do not consider pubspec.yaml updates. All reverted to original one.

@SandPod

SandPod commented Oct 14, 2024

Copy link
Copy Markdown
Contributor

Hey @xyzbilal!

Thanks for this great contribution.
We will try to get around to review this soon!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants