I did lose all my previous files in both the free hosting providers. To be honest, I tried very hard to get them back and they asked me to upgrade my account to a premium account( and to pay for 1 year hosting).
I was sure I wouldn't be using that hosting in the long run and I never trusted them enough to not to delete my website completely.
So, I said goodbye to free webhosting after that. Even if I don't get any revenue, I don't mind paying extra bucks for a reliable hosting provider to keep all my files safe but those hosting providers were never in my reliable list, after that.