Problem with file upload

View: New views
4 Messages — Rating Filter:   Alert me  

Problem with file upload

by Delphine Denis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,
I'm facing a problem with Canoo on a page which upload a file.
My page contains an <input type="file">, to fill-in with the file name,
and a submit button.
I fill-in the file name  with the function setFileField:
<setFileField name="fileArchive"
fileName="c:\temp\GrilleTarifaire_274.zip"/>

Then I simulate a click on the button to upload the file.
<clickButton xpath="//input[@class='charger']"/>  (I use xpath because
this button has no name or whatever so far..)

It works manually, but with Canoo the response is HTTP404.
Here is an extract of the code source:

        <form id="uploadFilesForm" method="POST" action="/admin/uploadFiles.to" enctype="multipart/form-data">

                ...
                <div class="column">
        Charger une nouvelle grille tarifaire :
                </div>
                <div class="action-charger">
        <input type="file" name="fileArchive" value="" onchange="CheckFormat_Archive();" class="rechercher" />
                        <input type="submit" value="Charger" onclick="return verifForm(this.form);" class="charger" />
                        <input type="hidden" name="productId" value="1081" />
                </div>
                ...
        </form>

Note: of course I checked that I have only one button with class="charger".

Would you have any idea?

Many thanks for your help
Delphine



_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: Problem with file upload

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Salut Delphine,

unbelievable a third subscriber with a .fr email address!

Can you look at the request performed (including headers) and compare it
with the request performed by your "normal" browser? (for instance in
Firefox using LiveHttpHeaders).

Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com

Delphine Denis wrote:

> Dear all,
> I'm facing a problem with Canoo on a page which upload a file.
> My page contains an <input type="file">, to fill-in with the file name,
> and a submit button.
> I fill-in the file name  with the function setFileField:
> <setFileField name="fileArchive"
> fileName="c:\temp\GrilleTarifaire_274.zip"/>
>
> Then I simulate a click on the button to upload the file.
> <clickButton xpath="//input[@class='charger']"/>  (I use xpath because
> this button has no name or whatever so far..)
>
> It works manually, but with Canoo the response is HTTP404.
> Here is an extract of the code source:
>
>     <form id="uploadFilesForm" method="POST"
> action="/admin/uploadFiles.to" enctype="multipart/form-data">
>
>         ...
>         <div class="column">
>                Charger une nouvelle grille tarifaire :
>         </div>
>         <div class="action-charger">
>                <input type="file" name="fileArchive" value=""
> onchange="CheckFormat_Archive();" class="rechercher" />
>                     <input type="submit" value="Charger" onclick="return
> verifForm(this.form);" class="charger" />
>                 <input type="hidden" name="productId" value="1081" />
>         </div>
>         ...
>     </form>
>
> Note: of course I checked that I have only one button with class="charger".
>
> Would you have any idea?
>
> Many thanks for your help
> Delphine
>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>


_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: Problem with file upload

by Delphine Denis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Merci Marc.
Even if I am only the third subscriber with .fr, I know much more french
people who use (and love) Canoo!
Thank you for your advice.
By looking closer to the requests performed, I finally found that my
problem was just a bug on the product I'm trying to test, which had
'hidden' 404.
Many thanks,
Delphine

Marc Guillemot a écrit :

> Salut Delphine,
>
> unbelievable a third subscriber with a .fr email address!
>
> Can you look at the request performed (including headers) and compare it
> with the request performed by your "normal" browser? (for instance in
> Firefox using LiveHttpHeaders).
>
> Cheers,
> Marc.
>  

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: Problem with file upload

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Delphine Denis wrote:
> Merci Marc.
> Even if I am only the third subscriber with .fr, I know much more french
> people who use (and love) Canoo!

Canoo guys will surely be interested to know that ;-)

Concerning WebTest, if you have some names of companies using WebTest
and that agree to appear on a user list, I'm interested. Perhaps the
WebTest users list will exist one day ;-)

> ...

Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
LightInTheBox - Buy quality products at wholesale price