Git Product home page Git Product logo

Comments (3)

yochay avatar yochay commented on July 24, 2024

Furthermore, if we are looking to make this change in the API backend, we should consider issue #34

from contosomoments.

lindydonna avatar lindydonna commented on July 24, 2024

The problem is that the mobile client needs there to be a record when it does its file upload. It could potentially do the file upload first (and have the Image record only in its local database), but then we're still putting logic in the client, because it has to do the updates in a particular order.

A better solution is to just use blob triggers to do the image resize. I tried this with the latest webjobs SDK, but I still saw 10 minute latency before the blob was actually picked up. I need to investigate this further.

The other problem is that the code changes the content type of the source image during the resize, since the mobile client does not set it. This causes another blob trigger to fire, since it changes the underlying blob.

In theory, we could just remove this content type logic, since on the web, the source image is always shown in the context of an HTML page and doesn't need its own content type. The resized images do need it, but their content type is set during the resize operation.

from contosomoments.

lindydonna avatar lindydonna commented on July 24, 2024

We'll fix this by using a webjob and Azure Function with a blob trigger, so it's a dup of #42

from contosomoments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.