Skip to content

[BUG] File Stash URL generation fails for files with special characters #17684

@js07

Description

@js07

Describe the bug
File Stash fails to generate a presigned URL when the file name contain special characters such as spaces, quotes, parentheses, or brackets.

To Reproduce

  1. Run the Pipedream Connect action:
gmail-download-attachment({
  "messageId": "...",
  "attachmentId": "...",
  "filename": "Simple Invoice (1).pdf",
  "stashId": ""
})
  1. Observe the output:
{
  "exports": {
    "$summary": "Successfully created file Simple Invoice (1).pdf in `/tmp` directory",
    "$filestash_uploads": [{
      "localPath": "/tmp/Simple Invoice (1).pdf",
      "s3Key": ".../u/Simple Invoice (1).pdf"
    }]
  },
  "os": [],
  "ret": {
    "filename": "Simple Invoice (1).pdf",
    "filePath": "/tmp/Simple Invoice (1).pdf"
  },
  "stashId": "..."
}
  1. Notice that the get_url property is missing from the $filestash_uploads object

Expected behavior
The $filestash_uploads object should include a get_url property with a valid presigned URL for accessing the file, regardless of special characters in the filename.

Additional context
https://pipedream-users.slack.com/archives/CPTJYRY5A/p1752767288375249

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtracked internallyIssue is also tracked in our internal issue trackertriagedFor maintainers: This issue has been triaged by a Pipedream employee

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions