Hi I was just using WFileUpload and have a couple of question also.
1. It works fine for "happy days" - but what happens if the user inputs a filename that does not exist. At the moment it seems to give a javascript error (access denied) - would be good if it threw a event like it does for "file to large" ...? If no file name is entered at all it seems to silently fail (again it would be good if it raised an error event). 2. How do you configure the max file size - apologies if this is documented somewhere! Other suggestions: - perhaps we should also have a "file upload started" event - this would avoid doubt as to if the file transfer was in progress (and allow the screen to be updated accordingly). - I think we perhaps should have a single completion event with a status code indicated success or type of failure? Or better the status code could be got via a class method. - I tried to do a upload->disable() - which does not exist. I wanted to disable the field while an update was in progress. Perhaps it does it implicitly anyway? Cheers Adrian 2009/9/1 Koen Deforche <[email protected]>: > Hey Jean-Michel, > > 2009/9/1 Jean-Michel Caricand <[email protected]>: >> Hello, >> >> In my application, I use a WFileUpload widget. I can upload any file but >> I have a little question : how to clear the filename field after the >> upload ? I didn't find method to do that in the documentation. > > For security reasons, you cannot manipulate the contents of a file > upload field through JavaScript. > The only solution is thus to delete it and create a new field. > > Regards, > koen > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
