Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
363 stars 301 forks source link

Create blob (V2) does not set the content-type in the blob correctly. #1128

Open tithij opened 1 month ago

tithij commented 1 month ago

Describe the Bug with repro steps

  1. Create a logic app
  2. Use the action Create blob (V2)
  3. I am fetching an image from a 3rd party via api.
  4. And then placing that on the blob
  5. When I upload the same image via the blob, the CONTENT-TYPE is set as image/png
  6. When I do that steps from 1 to 4, then the CONTENT-TYPE in the blob is set to application/octet-stream
  7. I have set the content type on Create blob (V2) and can see it set on the INPUT headers and body section of the run
  8. BUT, in the output there is no content type header. Only this "MediaType": "image/png",

image

image

image

What type of Logic App Is this happening in?

Consumption (Portal)

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

No response

Screenshots or Videos

No response

Browser

Chrome

Additional context

No response

smendoza88 commented 3 weeks ago

I am experiencing the same issue with the Create Blob (V2) connector. When I manually drop a file via Azure storage explorer, the correct type is set on the blob, but that is not the case with the logic app.

Here is the screenshot of the logic app setting the MediaType to application/pdf. 2024-08-27_13-08-14

Here is a screenshot of the file created in blob by the logic and the content type being set as application/octet-stream 2024-08-27_13-08-42