Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - frankred

Pages: [1]
1
Rightload - Official Forums / Simple Image Hoster xml - How to create
« on: April 07, 2009, 09:32:17 AM »
Hi everbody,
i've a big problem. Since 1 week I try to create a rightload server.xml for my image hoster.
It's very Simple. My index.php can receive 3 Paramters
  • File (named: "datei")
  • Username (named: "username")
  • Password (named: "userpass")

if username and password is empty or isn't correct the file will be uploaded as "anonymous".
This is my XML:
Code: [Select]
<RightloadExport Version="1.5">
  <Servers>
    <Server Protocol="2" Description="rapid-img" ActionURL="http://localhost/myimagehoster/index.php" FormFieldFile="datei" AdditionalFormFields="username=__user,userpass=__pass" FileURLRegex="images/[0-9a-fA-F]{32}.jpg" FileURLMatchPos="1" AutoActionEnabled="False" AutoActionURL="" AutoActionRegex="" AutoActionMatchPos="1" Hostname="ftp.example.org" Port="21">
      <Folders/>
    </Server>
  </Servers>
</RightloadExport>

If the upload was successfull the page returns the image link. Nothing else. No HTML or something. Whats the FileURLRegex for "everything" ^^

The upload works but it's alway as "anonymous". Apart from that, i didn't get on with FileURLRegex, but thats secondary :).

Can somebody help me?
sorry for my bad english i'm a german guy :D

Pages: [1]