implementation of uploading media resources and archiving js and css files before upload