Sign in to follow this  
Followers 0
spymare

php file upload

12 posts in this topic




#2 ·  Posted (edited)

We have general rule about helping with code and not helping by writing code.

But since this is sort of a new thing, here:

#include "WinHttp.au3"

Global Const $sAddress = "some.address"

Global $hOpen = _WinHttpOpen()
Global $hConnect = _WinHttpConnect($hOpen, $sAddress)
Global $sHTM = _WinHttpSimpleFormFill($hConnect, Default, Default, "name:uploaded", @ScriptFullPath)
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hOpen)

ConsoleWrite(">Server response:" & @CRLF & $sHTM & @CRLF)
MsgBox(262144, "Server response", $sHTM)
Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

thx ;) but how would i make it upload example @scriptdir & "\test.docx :)

Share this post


Link to post
Share on other sites

Yeah, sure.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

closed

Edited by spymare

Share this post


Link to post
Share on other sites

Greater force maybe.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

grater force?

Share this post


Link to post
Share on other sites

Force majeur.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

hmm i don't get it how to upload examples a file from c drive

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

closed

Edited by spymare

Share this post


Link to post
Share on other sites

You might try actually communicating. Just saying "closed" makes no sense. Neither does reporting the thread stating it should be deleted without offering any justification on context for why it should be deleted.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0