Fix uploads and downloads files