File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Relative path in Role Based Access Control(RBAC)

 
Anil Kumar Saha
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently I'm working in Role Based Access Control(RBAC)module of a project.
I've to find the RELATIVE path of any file,which will be assigned to a user according to the privillege given to him/her.
If I use <input type="FILE" > then, I get the ABSOLUTE path.

Can anybody help me for finding RELATIVE path of a file?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not find the relative path, you can take the absolute path and chop it off to for a ralative path on the server side.

Eric
 
Anil Kumar Saha
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Pascarello:
You can not find the relative path, you can take the absolute path and chop it off to for a ralative path on the server side.

Eric

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic