Allow file uploading and add raw pastes support