i am making an application which has a function that it encrypt file and then upload it to the server via HTTP POST. I tried it and it works fine when i test it on localhost (Local Server on my same machine).
However now when i try it with a url of a public server with same server side php code, files are uploaded but they are corrupted.
However if the file is not encrypted even if it is binary data, it works fine. Can you tell me what could be the problem, or is it the server does not allow encrypted files?
I am confused because for the server, it should be just another binary data file, then why does it only get corrupted when it is encrypted, while otherwise it works fine. Or may be it is free hosting, that is the reason?