File attachments damaged after server move

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Warlock
Posts: 10
Joined: Thu Jan 29, 2009 12:06 pm

File attachments damaged after server move

Post by Warlock »

Script URL: http://www.pronego.com/helpdesk
Version of script: 2.2
Hosting company: Myself

Write your message below:
I have changed my complete server and moved to another provider.
However, I copied all stuff including Hesk.
The problem is, that the attachments (at least the PDF files from which I have figured out the problem) are damaged. That means, when I click on an attachment, the browsers' download popup opens but then the Adobe Reader says 'File is damaged'. I have looked up the file in the attachment folder, even replaced and renamed one of the PDFs with its original file but still after the download, the file is damaged.

Any ideas?

Cheers,
Warlock
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: File attachments damaged after server move

Post by Klemen »

You probably uploaded binary files in ASCII mode. The only solution is to download and upload the original ones again.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Warlock
Posts: 10
Joined: Thu Jan 29, 2009 12:06 pm

Re: File attachments damaged after server move

Post by Warlock »

Unfortunately, Hesk doesn't offer to update existing files and the described phenomenon applies to all uploaded files.

Is the only thing I can do really to reply with a new ticket and upload the original files again?

My attempt described above was to replace the file in the attachments folder of HESK by the original the original file itself. I transferred the original file via SSH (WinSCP).

Do you have other suggestions how to 'repair' these files or at least replace the files in the original post with their originals?

Best,
Manuel
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: File attachments damaged after server move

Post by Klemen »

It's not a Hesk issue, it's a file tansfer mode issue. You (probably) transferred files from one server to antoher in the wrong mode. Again, the only way to fix it is if you get the files from first server again and upload it in the correct mode to the new server.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Warlock
Posts: 10
Joined: Thu Jan 29, 2009 12:06 pm

Re: File attachments damaged after server move

Post by Warlock »

Thanks for your help.
The solution was even simpler...I adjusted the past and forgot to change it in the configuration of Hesk.
Post Reply