Skip to content

[OP#64194] SharePoint UploadLinkQuery #19886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

mereghost
Copy link
Contributor

@mereghost mereghost self-assigned this Aug 12, 2025
@mereghost mereghost force-pushed the impl/64194-sp-upload-file branch from 331e435 to 949ac90 Compare August 12, 2025 13:54

let(:upload_url) do
"https://ymt6d.sharepoint.com/sites/OPTest/_api/v2.0/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY" \
"9jo6leJDqrT7muzvmiWjFW/items/01ANJ53W2OGTVJLOZ5R5F2NFJWGJOLV56J/uploadSession?guid=%27ca9855a1-245f-40b" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 wanna use drive_id as a variable and interpolate it here? Same in the folder_id?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might have some value to interpolate the drive id, but folder ID becomes moot point as the API generates the new ID of the upload and returns it as part of the URL, ignoring the parent folder.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 just a suggestion: maybe to put the token to a file or factory 🤔

Input::UploadLink.build(
folder_id:
"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8Qconfm2i6SKEoCmuGYqQK||04AZJL5PN6Y2GOVW7725BZO354PWSELRRZ",
file_name: "DeathStart_blueprints.tiff"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣 so, a Death Start, yes?

Copy link
Contributor Author

@mereghost mereghost Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep it is a blueprint after all. And a TIFF file nonetheless. XD

@mereghost mereghost requested a review from Kharonus August 13, 2025 16:25
Copy link
Member

@Kharonus Kharonus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@shiroginne shiroginne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants