archive: fix download permission; upload function done; upload file size needs config;