Ability to upload file

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
User avatar
Paul
Posts: 195
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Ability to upload file

Post by Paul »

Ability to upload a file natively from SpiderBasic.

Basically to be able to do something as simple as this...

Code: Select all

<form action='https://127.0.0.1/cgi-bin/mydata.cgi' method='post' enctype='multipart/form-data'>
Subject<br>
  <input type='text' name='subject'><br>
  <input type='hidden' name='pass' value='test data'><br>
  <input type='file' name='file1' id='file1'><br>
  <input type='file' name='file2' id='file2'><br>
  <br>
  <input type='reset' value='Clear' name='clear'>
  &nbsp;&nbsp;&nbsp;&nbsp;
  <input type='submit' value='Send' name='senddata'>
</form>
Dirk Geppert
Posts: 282
Joined: Fri Sep 22, 2017 7:02 am

Re: Ability to upload file

Post by Dirk Geppert »

+1
falsam
Posts: 280
Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:

Re: Ability to upload file

Post by falsam »


➽ Windows 11 - JDK 1.8 - SB 2.40 - Android 13
http://falsam.com

Sorry for my poor english
User avatar
Paul
Posts: 195
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: Ability to upload file

Post by Paul »

Although this "UploadGadget" you mention has its purpose, it does not do the same as the code snippet above so it cannot be used as a workaround.
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Ability to upload file

Post by Peter »

@Paul: What about this one?
User avatar
Paul
Posts: 195
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: Ability to upload file

Post by Paul »

Peter wrote:@Paul: What about this one?
Thanks Peter,
It looks like I can use formData.append in that code to add the extra text fields to go with the files so it may work for what I need.
I'll let you know my progress. :)
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Ability to upload file

Post by Peter »

Paul wrote:
Peter wrote:@Paul: What about this one?
Thanks Peter,
It looks like I can use formData.append in that code to add the extra text fields to go with the files so it may work for what I need.
I'll let you know my progress. :)
Currently I am working on an upload dialog.

Prototype:
Image
Dirk Geppert
Posts: 282
Joined: Fri Sep 22, 2017 7:02 am

Re: Ability to upload file

Post by Dirk Geppert »

@Peter: That sounds promising!
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Ability to upload file

Post by Peter »

Dirk Geppert
Posts: 282
Joined: Fri Sep 22, 2017 7:02 am

Re: Ability to upload file

Post by Dirk Geppert »

Looks good. :) During testing I noticed, that if you have already started once the upload, every new added file is marked as successfully uploaded then.
Post Reply