Comments (3)
Furthermore, if we are looking to make this change in the API backend, we should consider issue #34
from contosomoments.
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.
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)
- Remove duplicate azuredeploy.json HOT 3
- Add deployment script to do an npm install HOT 1
- Add Azure Function for resizing image HOT 2
- Replace the Azure WebJob with the Azure Function in the ARM template. HOT 2
- Web client: resize thumbnails rather than showing top left corner HOT 1
- Enable CORS on storage container HOT 1
- Fix windows phone client HOT 1
- Use client flow for Facebook auth on Android HOT 2
- Album delete doesn't work on web client HOT 1
- Use the Facebook JS SDK in web app to improve login flow HOT 2
- Add auth button on web client HOT 1
- Downgrade to ~0.2 of Azure Function, to workaround portal bug HOT 1
- Change Function ARM template to pin to a release, rather than "latest"
- Update Apple App Store release so that images can be uploaded to public album if not using default service
- Fix code in Android CustomImageRenderer
- Move repo to the Azure Samples organization
- Deploy to Azure fails HOT 5
- Integrate mobile app with angular
- missing node_modules\azure-mobile-apps-client folder HOT 1
- Microsoft.Azure.Mobile.Client.Files is no longer available in NuGet HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contosomoments.