Any way to Automatically Upload File to Workspace or Folder?
I don't see any methods in the python or HTTP APIs to upload a non spreadsheet file to a folder or workspace. Is there any method I'm missing or is this purposefully omitted?
Answers
-
Hello @gzimmer2
You can't store files in workspaces or folders. Files can only be stored within Smartsheet grids.
-
This is untrue. You can upload any kind of file to a workspace as an attachment via web gui. I can't find any similar functionality via API.
-
Ok, so as an attachment. I thought you meant as a file within the folder that you could browse to like you do other Smartsheet files. Mark all replies to your post as not being the answer, and your post will appear in the unanswered section again.
-
It looks like all of the POST options require at least a sheet ID, but I also noticed the documentation doesn't look like it has been updated since the ability to attach a doc to a workspace was rolled out. Have you tried putting a workspace ID in place of the sheet ID?
(below is from python documentation)
updated_attachment = smartsheet_client.Attachments.attach_file_to_sheet(
9283173393803140,
('ProgressReport.docx',
open('/path/to/ProgressReport.docx', 'rb'),
'application/msword')
) -
I have the same question about uploading files to workspace folders via the API. Did you ever find a solution?
-
Thanks for bumping this. No I tested with the code above and did not get results. Unfortunately I’m guessing that this is just not yet implemented via API yet
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 460 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives