Browsing for & uploading file to web page

Forums for specific tips, techniques and example code
StuG
Posts: 2
Joined: Fri Aug 14, 2009 11:37 pm
Location: Southampton

Browsing for & uploading file to web page

Postby StuG » Fri Oct 23, 2009 9:05 pm

I am developing a web based application for which I need the user to be able to browse for an input file and upload it to the web page.
Can anyone point me in the right direction?

Thanks,

Stu.

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: Browsing for & uploading file to web page

Postby BeeJay » Sat Oct 24, 2009 1:41 pm

I'll presume you're referring to a "JADE Forms" web enabled application. If this presumption is correct, then you should refer to the TextBox::webInputType property in the online help, and in particular the behaviour when TextBox::webInputType is set to Web_InputType_File.

As per the note in the online help, you have to process the file in the event that resulted in the file upload.

Cheers,
BeeJay.

StuG
Posts: 2
Joined: Fri Aug 14, 2009 11:37 pm
Location: Southampton

Re: Browsing for & uploading file to web page

Postby StuG » Thu Oct 29, 2009 10:04 pm

Thanks BeeJay, I was busy on other things earlier in the week but have now successfully uploaded and processed my file!
Woohoo! :D

cnwgem
Posts: 1
Joined: Tue Oct 27, 2009 2:11 pm

Re: Browsing for & uploading file to web page

Postby cnwgem » Thu Apr 14, 2011 10:21 am

I have a text box with webInputType = File, I browse/select a file then click an upload button - great the file uploads.
However the file will actually upload irrespective of what button I click, for example if I select a file then click on a navigation button (to exit the screen) - file upload occurs & I don't want it to. Is there a way to control when the upload occurs i.e. only when I click a specific button?


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 19 guests

cron