Check the length and use strncpy to make the code safer.
Attach a file by drag & drop or click to upload