Http Header question
prothero at earthednet.org
Tue Jan 19 18:55:31 EST 2016
That’s it! I knew there was something like that, but couldn’t remember it.
> On Jan 19, 2016, at 3:51 PM, Dave Cragg <dcragg at lacscentre.co.uk> wrote:
> Take a look at libUrlMultipartForm and libUrlMultipartFormAddPart in the dictionary. There are examples there that might help you.
> Dave Cragg
>> On 19 Jan 2016, at 22:44, William Prothero <prothero at earthednet.org> wrote:
>> I’m setting up a php sendmail script using phpSendmail and I’m trying to get the file upload for attachments part working. The examples I find are in html and the “type" is listed as “file”.
>> Basically, I’m trying to reproduce this, in a “post” command:
>> <form action = "" method = "POST" enctype = "multipart/form-data">
>> <input type = "file" name = "image" />
>> <input type = "submit"/>
>> <li>Sent file: <?php echo $_FILES['image']['name']; ?>
>> <li>File size: <?php echo $_FILES['image']['size']; ?>
>> <li>File type: <?php echo $_FILES['image']['type'] ?>
>> I figure it is probably a change in the http header, to get php to recognize the file as an upload, but I don’t know how to do this. Somehow, the php needs to get the filepath that I provide it, but …..
>> Any help would be very appreciated.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode