Menu

Form type "file" - how to upload file using AddPostData

Help
Anonymous
2015-08-16
2015-08-29
  • Anonymous

    Anonymous - 2015-08-16

    So, my crawler has reached a page with a form.. Once this form is submitted,new page will appear with new content(and links to further crawl).

    One problem though. This form has file upload element.
    <input name="file1" type="file" size="12"/>

    While AddPostData() accepts ordinary post variables, I don't know how to pass the file into the function.
    Anyone has a solution for this??

     
  • Uwe Hunfeld

    Uwe Hunfeld - 2015-08-29

    Hi!

    Sorry for my late answer.
    And sorry again, there is no "easy" way so far to post files with phpcrawl.

    But just feel free to add a feature-request here:
    https://sourceforge.net/p/phpcrawl/feature-requests/search/?q=status%3Aopen

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.