Made uploads to server work.