I'm trying to upload WordPress plugin using scrapy. I'm able to log in and navigate to choose the file path but I'm unable to see file path passing in upload request. Probably it's opening and sending file content but I'm also unable to crack that too.
Here's code what I have tried yet:
yield Request(
url=f'{TARGET_WEBSITE_HOST}/wp-admin/update.php?action=upload-plugin',
method='POST',
callback=self.upload_plugin,
meta={'upload-step': 2},
headers = {} # Need to pass file here probably?
)