alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

Form with file uploading in a component will not work with components loaded with LOAD #141

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From the1.a...@gmail.com on January 03, 2011 11:28:45

What steps will reproduce the problem? 1. Create a component that has a file upload form

  1. Use LOAD method to ajax_trap form into another page
  2. Try to upload a file What is the expected output? What do you see instead? Expect to see successful upload of the file, but what we see is an error stating "enter a value" for file input field. What version of the product are you using? On what operating system? Latest version (bleeding edge) on Ubuntu Linux and on XP. Please provide any additional information below. This isn't a particular problem with web2py. It's a known AJAX problem. And there are many alternatives out there. For eg., http://www.swfupload.org/ or uploadify ( http://www.uploadify.com/about/ ) which integrates swfupload.

What we like to see is a workaround based on uploadify (or using similar libs) included in web2py.

Original issue: http://code.google.com/p/web2py/issues/detail?id=143

alfonsodg commented 10 years ago

From massimo....@gmail.com on January 10, 2011 10:18:06

As you said this is an ajax problem (one cannot submit a multipart form via ajax). There are libraries to do it. Because there is a choice this should not be default web2py behavior. Moreover those libraries would bloat the web2py scaffolding app. Sorry.

Status: WontFix