Timeline for How do you submit an Input type of "file" using URLExecute?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 29, 2015 at 18:31 | comment | added | C. E.♦ |
@ChristopherHaydock Yes, correct, upload.php is the code I have given. Wen it works correctly, as it does with the hack, the file only shows up in the array $_FILES .
|
|
Oct 29, 2015 at 18:12 | comment | added | Christopher Haydock | I'm not familiar with simple PHP script and Mathematica code combinations like that you created in your answer. Would it be correct to assume that upload.php in the URLFetch first argument of your Mathematica code block is in fact the PHP script in your PHP code block? I'm also guessing that with the URLFetch hack present the JPG image file shows up in both dollar-sign_REQUEST and dollar-sign_FILES, instead of just in the dollar-sign_REQUEST variable. Correct? | |
Oct 25, 2015 at 11:50 | history | edited | C. E.♦ | CC BY-SA 3.0 |
added 144 characters in body
|
Oct 25, 2015 at 6:19 | history | bounty ended | Simon O'Doherty | ||
Oct 23, 2015 at 18:36 | comment | added | C. E.♦ |
@SimonO'Doherty I get error messsages, I can't evaluate that. However I can say that the data is submitted correctly with the header Content-type set to multipart/form-data for the version that is in my post. It's just that for some reason the file is not sent as a file. I can also say that I tried it that but with the image represented by bytes and it didn't work.
|
|
Oct 23, 2015 at 17:08 | comment | added | Simon O'Doherty |
Thanks. If you changed it to "MultipartData"->{{"image", "multipart/form-data" , Import["test.jpg", "Byte"]}} Do you still get the same results?
|
|
Oct 22, 2015 at 17:37 | history | edited | C. E.♦ | CC BY-SA 3.0 |
added 5 characters in body
|
Oct 22, 2015 at 17:22 | history | answered | C. E.♦ | CC BY-SA 3.0 |