Kreatus (Ubot Ninja) 422 Posted April 20, 2011 Report Share Posted April 20, 2011 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! Quote Link to post Share on other sites
James J 3 Posted April 20, 2011 Report Share Posted April 20, 2011 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 toto change the file extension. Or if you have Dev version I believe there is an option to rename a file. James Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted April 20, 2011 Author Report Share Posted April 20, 2011 Nope. Im trying to create a "Save File" UI inside UIhtml. When user click the browse button. The user will have an option to enter a filename and then hit save. Quote Link to post Share on other sites
James J 3 Posted April 20, 2011 Report Share Posted April 20, 2011 I don't think so without having to write some type of php code. Maybe some oneelse can provide the solution. Try searching "create save file button in html" in google Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted April 20, 2011 Author Report Share Posted April 20, 2011 Ok.. Check this savefile.ubot thats the normal Save File UI. I want to duplicate that field inside uihtml. Quote Link to post Share on other sites
UBotBuddy 331 Posted April 20, 2011 Report Share Posted April 20, 2011 To my knowledge it no workie. Check with JohnB to verify. I could be wrong. Quote Link to post Share on other sites
Praney Behl 314 Posted April 21, 2011 Report Share Posted April 21, 2011 You can use the same : <openfile type="file" name="fileField2" id="fileField2"> This will work. Praney Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted April 21, 2011 Author Report Share Posted April 21, 2011 You can use the same : <openfile type="file" name="fileField2" id="fileField2"> This will work. Praney It wont. I already tried that. Quote Link to post Share on other sites
Praney Behl 314 Posted April 21, 2011 Report Share Posted April 21, 2011 Ok, yeah that doesn't work. Hmm... Quote Link to post Share on other sites
Praney Behl 314 Posted April 21, 2011 Report Share Posted April 21, 2011 Oh there you go.. I just tried this and it works : <savefile variable="#savefile" fillwith="value" type="file" name="fileField2" id="fileField2"> Enjoy! Praney Quote Link to post Share on other sites
Praney Behl 314 Posted April 21, 2011 Report Share Posted April 21, 2011 And here is a working example : Sample_Kreatus_HTML-UI_Save-File_By-PRANEY.ubot Praney 2 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted April 27, 2011 Author Report Share Posted April 27, 2011 Great Praney! +1 to you. 1 Quote Link to post Share on other sites
Guest leahDyou Posted June 5, 2011 Report Share Posted June 5, 2011 And here is a working example : Sample_Kreatus_HTML-UI_Save-File_By-PRANEY.ubot Praney This is an old thread, but this works perfectly! Quote Link to post Share on other sites
orbital 15 Posted June 10, 2013 Report Share Posted June 10, 2013 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.