You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this should be added to the storage service because its a a very specific feature that might add more complexity, especially when talking about integration with a 3rd party service.
This can be a really good fit for our cloud functions service. We could create a function that listens to any file uploaded, get the image string from blurHash and save it as new meta data for the file or any related database document for max performance.
@duythien0912 Thanks for this idea. But we're trying to make appwrite APIs interact with as less 3rd parties as possible. We only interact with 3rd party providers for our OAuth endpoints which would be impossible to implement otherwise.
As @eldadfux suggested it's best to use the cloud functions service.
Activity
eldadfux commentedon May 20, 2020
Hey @duythien0912 how would you see this integrate with Appwrite? Please provide more info
duythien0912 commentedon May 21, 2020
I think we can add new params name blurha on view image link
http://appwrite.io/v1/storage/files/{fileID}/view?project={projectID}&blurha={blurHash}blurhash string will create when we upload the image ( maybe on flutter or server )
eldadfux commentedon May 21, 2020
I don't think this should be added to the storage service because its a a very specific feature that might add more complexity, especially when talking about integration with a 3rd party service.
This can be a really good fit for our cloud functions service. We could create a function that listens to any file uploaded, get the image string from blurHash and save it as new meta data for the file or any related database document for max performance.
eldadfux commentedon May 21, 2020
You can read about our cloud functions feature here: #307
christyjacob4 commentedon May 30, 2020
@duythien0912 Thanks for this idea. But we're trying to make appwrite APIs interact with as less 3rd parties as possible. We only interact with 3rd party providers for our OAuth endpoints which would be impossible to implement otherwise.
As @eldadfux suggested it's best to use the cloud functions service.
Merge pull request appwrite#328 from utopia-php/feat/messaging-email-…