cancel
Showing results for 
Search instead for 
Did you mean: 

Http URL starts with file://

Former Member
0 Kudos

Hi.

I need to access the file content which is placed in the local system.

The format of the url is:

file://<Server Name>/<FolderName>/FileName

example: file://pwdf1234/sample/abc,jpg

Is there any specific criteria if the url starts with file:// or

Should I configure in Visual administrator if the url starts with file://

Could you please let me know.

Regards

Bala

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

1. Login to visual Admin.

2. Goto HTTP Provider service

3. Set HTTP Alias for the local path of your file system

eg. local path: C:\ABC\XYZ

http: /xyz

Now you can set the url to http://<servername>:<port>/xyz

Regards,

Murtuza

Former Member
0 Kudos

Hi,

Are you using link to URL.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Raj.

Thanks for your reply.

No, Im not using Link To URL

It (the url which starts with file://) is a hyperlink.

If you click from webdynpro UI it should navigate to the actual content.

If it is a http url(for ex: http://www.google.com), it works but if it is a url which starts with file://

does'nt seems to work.

Regards

Bala

Edited by: Balachandar P on Dec 26, 2007 5:58 AM

Former Member
0 Kudos

Hi,

Which is the UI component used? Why not link to URL?

Have you tried with the IP instead of the system name. May be a name resolution issue.

file://<your Ip>/<Share>/<FileName>

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Raj.

Sorry, The UI component is link to URL which is created dynamically.

Regards

Bala

Former Member
0 Kudos

Hi Murtuza.

creating alias name for the specified folder works, but

my requirement is the url should starts with file://

Can I achieve it through the above mentioned step or is there anyother way to do this

Regards

Bala

Former Member
0 Kudos

Hi Balachandar,

I don't think that LinkToUrl will accept the url in the form of file://..... , it will accept it in the form of http://..

Regards,

Murtuza

Former Member
0 Kudos

Hi,

Use link to URL and map the reference with an attribute of type string

Ex:

A context attribute created with fileURL

set the value

wdContext.currentContextElement().setFileUrl("file://10.53.142.110/Shared/books.txt");

map this attribute to Linkto url

and onclick of this its opening for me. Hope itshould work at your end too.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Raj.

Thanks for your help. It works now.

The URL should have the system name which is shared with a folder of contents. so we can access it through the file:// and it works

Thanks

Bala

Edited by: Balachandar P on Dec 26, 2007 7:27 AM