You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gilc83 opened this issue
Dec 30, 2024
· 0 comments
Labels
featureIssues that represent new features or improvements to existing features.t-toolingIssues with this label are in the ownership of the tooling team.
Which package is the feature request for? If unsure which one to select, leave blank
@crawlee/core
Feature
I'm trying to submit HTTP POST requests and add them directly to the queue, but when adding a request like this:
let response = await requestQueue.addRequest({
url: interceptedUrl,
method: method,
payload: postData,
...
The payload parameter accepts only string postData, and not a Buffer, while in multipart file upload scenarios, the uploaded file can be a binary one, requiring the payload to be either a string or a Buffer.
Motivation
I'm using Crawlee to write a web spider, including file upload and it is not supported.
Ideal solution or implementation, and any additional constraints
Just change the type of payload to string, undefined or Buffer, and support Buffer along the way. At least in Playwright who also supports it.
Alternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered:
Gilc83
added
the
feature
Issues that represent new features or improvements to existing features.
label
Dec 30, 2024
featureIssues that represent new features or improvements to existing features.t-toolingIssues with this label are in the ownership of the tooling team.
Which package is the feature request for? If unsure which one to select, leave blank
@crawlee/core
Feature
I'm trying to submit HTTP POST requests and add them directly to the queue, but when adding a request like this:
let response = await requestQueue.addRequest({
url: interceptedUrl,
method: method,
payload: postData,
...
The payload parameter accepts only string postData, and not a Buffer, while in multipart file upload scenarios, the uploaded file can be a binary one, requiring the payload to be either a string or a Buffer.
Motivation
I'm using Crawlee to write a web spider, including file upload and it is not supported.
Ideal solution or implementation, and any additional constraints
Just change the type of payload to string, undefined or Buffer, and support Buffer along the way. At least in Playwright who also supports it.
Alternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered: