Support pdf upload, remove files after upload