cancel
Showing results for 
Search instead for 
Did you mean: 

text type/image type file

Former Member
0 Kudos

hi,all

I need in my requirement to identify the file type before

I upload it to KM(text or image file type),it should be exactly

like when you try to upload file in any internet site ,and when

it should be image you see in opened window files of only

image type (Pictures(.jpg,.gif,*.bmp)).

How can I do it?

Regards,

Michael

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

No,I'm using WD04.

Well,what I try to achieve is giving only wright option for the

end user ,i.e. if he wants to upload an image by my FileUpload

element,when he push the Browse... button there are only files of

picture type will be showing for his choice.And if he wants to upload

an any text file,there are only files of text type will be showing for his

choice.If is it possible in web dynpro?

Regards,

Michael

Former Member
0 Kudos

Hai,

See this <a href="/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis

If you are using NW04s , using resource type for File upload,

if (resource.getType.equals("GIF")){

//ur code to upload into Km

}

Regards,

Naga

Former Member
0 Kudos

hi,

Can you please provide more details about what exactly are you trying to acheive in your application??