Added `type` query arg for the file type