18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Sahi 404 Error page not found when upload a file

chaudharypareshchaudharyparesh Members
edited November -1 in Sahi - Open Source
Hi I got Error Http 404 page not found when upload a file

<td >width="71%"><input type="file" id="filename" name="filename"></td>
I changed file type to text
my code like
_click(_image("Upload firmware"));
_setFile(_file("filename"),"/root/10_0_674"); /* 10_0_674 is filename */
_call(_file("filename").type = "text");
_setValue(_textbox("filename"), "/root/10_0_674");

Comments

  • SumitraSumitra Members
    Hi Chaudharyparesh,

    What happens when you upload a file manually instead of uploading it through Sahi? On submit, do you see a valid page or a 404 error?

    Regards
    Sumitra
  • using manually i can upload successfully

    i also post same forum in detail

    http://sahi.co.in/forums/viewtopic.php?pid=8514#p8514
  • SumitraSumitra Members
    Hi Chaudharyparesh,

    Please refer fileUpload.sah by navigating to

    C:\Sahipro\userdata\scripts\demo\fileUpload.sah to know more about uploading a file through Sahi.

    Also, provide the source code of the page.

    Regards
    Sumitra
Sign In or Register to comment.