Unity 2019 picture upload as .jpg file
I am using the native android/ios plugin to upload pictures to my server. plugin - https://assetstore.unity.com/packages/tools/integration/native-gallery-for-android-ios-112630
example code - https://github.com/sltutoriais/PHPHTTPServer
When I select an image it gives me a path where I can use the texture. file location is stored under Application.temporaryCachePath/pickedMedia.png or Application.temporaryCachePath/pickedMedia.jpg
both pickedMedia.png and pickedMedia.jpg return a Texture2d that I display on a rawImage.texture.
The Problem--- When I upload the .pickedMedia.png as a file, it uploads flawlessly. When I try and upload the pickedMedia.jpg, nothing gets sent to my server. I changed I all .png to .jpg and would think it wouid work but it doesn't. If anyone has any advice, knowledge, or test suggestions, please let me know.
When I send the png file for upload via php it works flawlessly.
Answer by ironic327 · Oct 11, 2020 at 03:33 PM
I just figured it out, I retried converting everything over to .png and it works. issues I dealt with this is php problems and chmod issues.
Your answer
![](https://koobas.hobune.stream/wayback/20220613013548im_/https://answers.unity.com/themes/thub/images/avi.jpg)