.aspx displays as webpage in browser when manually uploaded, but downloads in browser when uploaded with Microsoft365R
- Dominant language
- R
- Stars
- 368
- Forks
- 58
- Avg merge
- 1h 42m
- Merged PRs (30d)
- 4
Description
I am trying to automate reporting for a private team using OneDrive, but `.aspx` files are handled differently wrt two methods of deployment:
1. uploading folder at the web interface magically generate pages at `webURL` and interlinks them
2. uploading folder with `{Microsoft365R}` only allows pages to be downloaded and no page at `webURL`
I want a `webURL` I can navigate to in the browser, uploaded by 2.
```
> library(Microsoft365R)
>
> odr <- Microsoft365R::get_business_onedrive()
Loading Microsoft Graph login for default tenant
>
> odr$upload_folder(src = "_site", dest = "alir_test/_site", recursive = TRUE)
>
> # odr$list_files(path = "alir/_site")
> # odr$list_files(path = "alir_test/_site")
>
> # respective ids retrieved
>
> about_alir <- odr$get_item(itemid = someid1) # web interface upload
> about_alir_test <- odr$get_item(itemid = someid2) # automated MS356R upload
>
> about_alir_test$properties$webUrl
[1] "https://pitt-my.sharepoint.com/personal/mjb357_pitt_edu/Documents/alir_test/_site/about.aspx"
> about_alir$properties$webUrl
[1] "https://pitt-my.sharepoint.com/personal/mjb357_pitt_edu/Documents/alir/_site/about.aspx"
```
Contributor guide
Research direction
Start with Microsoft365R::get_business_onedrive(), then trace upload_folder() and inspect the item returned by get_item(), especially properties$webUrl. Compare the metadata for a manually uploaded .aspx file with one uploaded through Microsoft365R; done means the automated upload produces a browser-renderable page URL rather than a download response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100