Tried to implement a function to upload a file. Failed on config parameters (line 76)