first call fchmod() to prevent TOCTTOU, then apply permissions using chmod()
Attach a file by drag & drop or click to upload