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_media should accept file-like objects and buffers in addition to pathnames #13

Open
joefutrelle opened this issue Jan 9, 2025 · 0 comments

Comments

@joefutrelle
Copy link

def upload_media(self, filepath: Union[str,Path], pid: str, pid_type: str, store_config: Dict, identifiers: Optional[Dict] = None, metadata: Optional[Dict] = None, tags: Optional[List[str]] = None) -> ApiResponse:

This currently requires a path but should accept open files, BytesIO buffers, and bytes objects.

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

No branches or pull requests

1 participant