Jump to content
UBot Underground

What is "Save File" html code?


Recommended Posts

Sorry for this dumb question But I cant find it anywhere.

 

This is the html code for browse to file (This will let you choose which file to open):

<input type="file" name="fileField2" id="fileField2">

 

My question is what is the html code if I want to specify a filename and save it? Just like the "Save File UI" of ubot.

 

Thanks!

Link to post
Share on other sites

Kreatus, if I understand you correctly you are making UBOT download a file? Then you want to change the

file type? If so just set a variable with the file type extension then use the "replace" text command to

to change the file extension. Or if you have Dev version I believe there is an option to rename a file.

 

James

Link to post
Share on other sites

I don't think so without having to write some type of php code. Maybe some one

else can provide the solution. Try searching "create save file button in html"

in google

Link to post
Share on other sites

Oh there you go.. I just tried this and it works :

 

<savefile variable="#savefile" fillwith="value" type="file" name="fileField2" id="fileField2">

 

Enjoy! ;)

 

Praney

Link to post
Share on other sites
  • 1 month later...
  • 2 years later...

you could also use dialogtype="save"  so

 

<input type="file" dialogtype="save" variable="#var1" fillwith="value" />

 

I know this is an old thread but these things like dialogtype need to be documented somewhere.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...