8000 An easier way to provide arguments · Issue #1416 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
An easier way to provide arguments #1416
Open
@rdmchr

Description

@rdmchr

🚀 Feature

Let's say I'm using the picture preview function, but I only want to rotate my Image by 180 without resizing it. Currently, I would have to use the following request:
storage.getFilePreview(imageId, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, 180);
I believe it would be easier to just use an Object, which would allow you to specify which parameters you want, without needing a row of undefined.

Have you spent some time to check if this issue has been raised before?

Yes. I asked in the Discord server and I also found issue #292 but it seems to be closed even though that feature is not implemented. I hope I didn't miss anything.

Have you read the Code of Conduct?

Yes.

Pitch

I believe this feature would improve readability and ease of use since you could just use
storage.getFilePreview(imageId, {rotation: 180});
Furthermore, I believe that this will become necessary, as Appwrite gets more features as someday it wouldn't make sense to use that much undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0