Files uploading, error checking