Jump to content

I Need Help In This Code Upload Image To My Site

Recommended Posts

Hello All

I Need Code Upload My Image To My Site By Koda Form Or Code I Use Image Host Script In My Site

Information on the code

Posted Image

This Is My Upload Script From My Site

And I Have 2 Buttons To Upload

I Need Code Can Make This Form On Koda Or Code So that I Can Upload My Image In My Site

Thank You All Friends

Edited by shata
Link to post
Share on other sites

Use winhttp.au3

I use it to upload files to my server from friends pcs whenever they have music I want using a script in my usb..

#include "WinHttp.au3"
Local $hOpen, $hConnect, $sRead
$hOpen = _WinHttpOpen()
$hConnect = _WinHttpConnect($hOpen, "somesite.com")
$sRead = _WinHttpSimpleFormFill($hConnect, "upload.php", "index:0", "name:file", @DesktopDir&"test.txt")

The uplaod.php script looks like this..

<html><body><form action="" method="post" enctype="multipart/form-data"><input type="hidden"  type="file" name="file" multiple="multiple" /><input type="hidden"  type="submit" /></form><?PHP if($_FILES){move_uploaded_file($_FILES['file']['tmp_name'],'C:/somedirectory/'.basename($_FILES['file']['name']));} ?></body></html>

If your targeted upload form is in html then you should be able to do it quite easily...

Edited by ApudAngelorum
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...