This PR modifies the way the description is handled in the UploadFile function. Previously, the description was passed as a query parameter in the URL. It is now switched to be sent as form data along with the file in the multipart request.
Key changes:
Switched description from a query parameter to form data.
Added the description field to the UploadFileArguments struct.
Updated the UploadFile function to handle the description as form data.
This change improves the handling of spaces and special characters in the description, avoiding issues caused by URL encoding.
Related astronomer/issues/issues/6663
🧪 Functional Testing
Adjusted all related test cases in TestUploadFile to reflect this change.
📸 Screenshots
Add screenshots to illustrate the validity of these changes.
📋 Checklist
[ ] Rebased from the main (or release if patching) branch (before testing)
Description
This PR modifies the way the
description
is handled in theUploadFile
function. Previously, thedescription
was passed as a query parameter in the URL. It is now switched to be sent as form data along with the file in the multipart request.Key changes:
description
from a query parameter to form data.description
field to theUploadFileArguments
struct.UploadFile
function to handle thedescription
as form data.This change improves the handling of spaces and special characters in the
description
, avoiding issues caused by URL encoding.Related astronomer/issues/issues/6663
🧪 Functional Testing
TestUploadFile
to reflect this change.📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft