Added a debug file uploading system, will be moved.