php - PhpStorm don't upload JPG & GIF files

25

I have some problems with PhpStorm server. When I try to upload image file with PhpStorm server (like:http://localhost:63342/MySite) it don't upload only jpeg and gif files, png files can be uploaded.

When file is not uploaded, the server says "502 bad gateway" so I must shut down PhpStorm and restart it again...

But when I use XAMPP server it's all OK the files are uploaded perfectly.... So I don't get where is the problem in PhpStorm.


P.S. I use php 5.6.14. Also this problem appears in all computers not only on my pc (just you to know...)


P.P.S. I found out that the problem is in file size and not in file type.

For example I have 2 jpg files and 2 png files, one jpg and png are less than 50k and the aver two files (jpg, png) are more than 50k, so the one that is less than 50k the PhpStorm will upload but the avers more than 50k would not...

I have changed php.ini file and set upload and post max sizes to 100M but nothing happens!!! PhpStorm crashes every time I upload more than 50k files...

Dose anyone has any solution to this paranoic problem?

77

Answer

Solution:

As @Lena has already stated: it's an issue in PhpStorm's built-in web server (handling POST requests in general). There is nothing you can do right now to bypass it (unless you use previous PhpStorm version .. or use proper Apache/nginx/IIS/whatever).

https://youtrack.jetbrains.com/issue/WEB-17317 -- watch this ticket (star/vote/comment) to get notified on progress.

People are also looking for solutions to the problem: php - Dropdown list only appears in the first table row

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.