Go to file
2022-05-19 22:41:48 +00:00
index.php removed test link 2022-05-19 22:41:48 +00:00
README.md displayed folder content 2022-05-16 12:05:32 +00:00

Installation

  1. First assign the $share_url variable with your onedrive share link. Example: $share_url = "<your share link>";
  2. Place index.php file inside the DocumentRoot folder of apache or nginx. Make sure php is enabled.
  3. You need to redirect all routes to the index.php file and put the path in a parameter called path.
    • If you are using apache, you can add following rewrite rules in your virualhost config file:

        RewriteEngine on
        RewriteRule ^(.*)$ /index.php?path=$1 [PT,L,QSA]
      
    • If you are using nginx, please search the equivalent configuration on the internet

Resource

https://docs.microsoft.com/en-us/graph/api/shares-get?view=graph-rest-1.0&tabs=http#encoding-sharing-urls