Image files converts to text files via FTP/Web controlpanel transfer

Asked By 0 points N/A Posted on -
qa-featured

Hi TechyV,

How do you explain what happens whenever I upload a JPG file to my website control panel, it converts into a .txt or TEXT file automatically? Due to this, the file becomes useless and thus can't be viewed as an image. 

I've searched for several remedies including making sure that my binary transfer options/converter settings are in place that is not the issue; my server is doing okay as well. I just want to know the detailed technical reasons why the file converts by itself.

Thank you.

Monaliza

SHARE
Best Answer by Harkless Wong
Answered By 0 points N/A #169942

Image files converts to text files via FTP/Web controlpanel transfer

qa-featured

Hi Successbiz,

I read your problem. In this case, you will get some unexpected results that you would never expect. Visitors will have the problem of not being able to see the picture, and search engines will also see is it as clocking. But you can do one thing, which is to upload an ALT tag for this picture.

Thanks.

Best Answer
Best Answer
Answered By 0 points N/A #169944

Image files converts to text files via FTP/Web controlpanel transfer

qa-featured

Hello Monaliza,

Generally this types issues happens rarely, But it has a simple solution. These types of errors will arrive because of MIME type settings. In your hosting Cpanel, You can see a tab with name "advanced" .

Here you can see Image Manager, you can setup your settings there. you can set "convert Image Format off".
After setup , if it shows the same error , please contact your hosting provider, They will solve your issue.
 

Answered By 590495 points N/A #311310

Image files converts to text files via FTP/Web controlpanel transfer

qa-featured

I’m not sure if all control panels are the same because with my web server, the online file manager detects the file automatically and there is no option to change the upload file format. In your case, check your web server’s control panel if there is an option to change the transfer type and change it to “Auto”.

When you set the FTP transfer to automatic, FTP will automatically detect the format of the file and selects either “ASCII” or “Binary”. “ASCII” is anything human readable like text files while “Binary” is for all other files that are machine readable like executable files (*.exe and *.com), image files (*.jpg, *.gif, *.png, *.bmp, and others), data files (*.dat), and others.

In a web server, even if you upload your file via the control panel, the upload process is still passed on to FTP. Here’s when the corruption begins. When your file manager’s FTP is set to an incorrect transfer type, let’s say “ASCII”, and you upload an image file, FTP will treat the file as normal text file instead of binary and that’s how the file gets corrupted.

This is probably why your file gets converted to another format. If there’s no option in your control panel to change the FTP transfer type, upload to your web server using an FTP client like FileZilla or WinSCP. These FTP clients are configured to transfer files in “Auto” by default.

Related Questions