Pass the file path as a string rather than a char array
Post the value on the known element when setting the value on a file input