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')
)
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives