Thank you David, this is the solution !.

Congratulations,

-- Leandro.





On Tue, Nov 19, 2013 at 5:02 PM, David Kopec <[email protected]> wrote:

> Is your form's enctype right? It needs to be multipart/form-data for
> files.  <form method="POST" enctype="multipart/form-data">
>
> On Tuesday, November 19, 2013 10:19:27 AM UTC-5, Leandro Severino wrote:
>>
>> In my form.py:
>> ....
>> form.File('arquivo_arte')
>> ...
>>
>> In the def POST(self):
>> .....
>> uploaded_file = form['arquivo_arte']
>> orcamento_file = open(upload_path + uploaded_file.filename, "wb")
>> orcamento_file.write(uploaded_file.file.read())
>> orcamento_file.close()
>> .....
>>
>> I receive a error with the .filename property not exists.
>> Then debugging the sources, uploaded_file variable is a string not a file.
>>
>> -- Leandro.
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/webpy.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.
  • [web... Leandro Severino
    • ... David Kopec
      • ... Leandro - ProfessionalIT - Soluções em Tecnologia da Informação .

Reply via email to