Welcome! Log In Create A New Profile

Advanced

WB11 Uploadcontrol Accept only images

Posted by Swissstephan 
Swissstephan
WB11 Uploadcontrol Accept only images
December 18, 2008 11:20PM
Hi
I just wanted to reduce the uploadable files via uploadbutton to images. In WD everything works fine with

lcFileSelected is string = "Test.jpg"
lcOutFileName is string = ""
lcInitialDirectory is string = fExtractPath(lcFileSelected, fDrive + fDirectory)
lcFileTypes is string = fGraphicFilter()
LcFilePickerTitle is string = "Bitte wählen Sie ein Bild"

// Select a file
lcOutFileName = fSelect(lcInitialDirectory, lcFileSelected, LcFilePickerTitle, lcFileTypes,"",fselOpen)

but I have no way found to use this snippet in the uploadbutton.

Any ideas? Thanks for all your input.
Stephan

Fabrice Harari
Re: WB11 Uploadcontrol Accept only images
December 19, 2008 12:06PM
Hi Stephan...

If I understood correctly what you want, you can do that in a java appelt (coded in windev) embedded in your webdev page.

Best regards

Fabrice Harari
WinDev, WebDev, Windev Mobile consulting
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: