Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Attempted Uploaded Files Received Are Garbled Characters, But Works Fine with POSTMAN tool

$
0
0
Initially All code was working fine, however within the past few weeks, I have added a couple more domains behind a reverse NGINX proxy. It was until recently I noticed my one app unable to properly upload files.

After what has been several days of narrowing down potential issues, from testing code, testing file paths, folder and file permissions, I have narrowed down to what could be the cause. After scouring 100s of web pages, comment posts, forums, I am just not sure how to solve precisely.

When I upload a picture from my app, it comes out in garbled characters as posted in an image attached.

When I use the same API to upload from Postman Tool, it uploads perfectly well and gives these results, image attached.

I noticed it could be something with the encoding, the Postman states it has a 7-bit encoding, and it works perfect, uploads the file to the proper directory and everything.

I am using Form Data to send to the API. Again, this was working perfectly before, until around the time I added 2 more domains behind the proxy.

Any ideas?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>