Understanding a files URL when viewed in Box
回答済みWe currently have an integration where we generate a URL to view a document in Box using the folder id and the document number but I was curious if there were any other ways to view the file in box by adjusting that URL (and not using any custom or shared link that could be created by the api). I'm really just curious if there is anything else to the typical:
files/0/f/###.../1/f_###...
I realize currently the 0/f/###.... portion of the URL maps to the folder containing the document. while the /1/f_###.... portion of the URL is the actual document number itself. So my curiousity would be is there a way to have a viewing url without the folder portion? Or can the folder portion be the name of the folder instead of its number? Are there any other numbers instead of the 0 and 1 that do any sort of different processing? I did a little hunting to see if there was some documentation on this and I didn't turn up anything so maybe I just need to be pointed in the right direction. I also tried a few guesses but none seemed to work so I figured I would ask. Thanks in advance for your help!
-
Hi ,
Like you said, there is no other way to customize that URL as of yet. Again I am not sure why you would want to change that behaviour. Do you have any specific requirement for that?
Box convention:
For folder it adds "f" /0/f/
For files it adds "1" first and then adds f_ i.e. /0/f//1/f_
so basically "/0/f" will always be there even it's file or folder becuase "0" is the root folder.
User will only be able to open files or folder using this URL scheme only if the user is owner or the user is collaborated to that folder other wise this won't work. I assume you already know that.
thanks,
Bibek
-
Thanks ,
What I am really after is a standard url where the folder id doesn't have to be part of the viewing URL. So I was hoping that maybe I could play around with the URL format some if it was possible. The system we integrate with nicely stores the Id in a standard table but the folder is not able to be stored in standard tables so I was hoping to get around it somehow. Obviously we can store the folder in custom tables or we can also do a quick api call before we attempt to view it to get the parent folder that its stored in. Basically was just curious if I had any other options. Thanks for the input!
サインインしてコメントを残してください。
コメント
2件のコメント