File Upload Dialog
Coolite Toolkit Version 0.8.2 now available for DOWNLOAD | See also Examples Explorer | Version 1.0 available Q1 2010
 

Coolite Forums

Welcome Guest ( Login | Register )
 
«««1234
File Upload Dialog
Subscribe
Last Login: Today @ 3:39:26 PM
Posts: 49,
Posted 3/16/2009 6:29:21 PM

Group: Coolite Early Adopter
 How to restrict it to add only one file and how to get uploaded fileName
Last Login: Today @ 4:16:20 PM
Posts: 3,961,
Posted 4/6/2009 9:14:07 PM

Group: Core Development Team
FYI - The <ext:FileUploadField> has been added to the upcoming v0.8 release. 

Not a fancy as this File Upload Dialog, but does provide solid functionality. 

A FileUploadField sample has been committed to the examples explorer in svn, see

trunk\Coolite.Examples\Examples\Form\FileUploadField\Basic\

I'll link to the live example as soon as we publish v0.8 of the Examples Explorer. 


--
Geoffrey McGill
Coolite Inc.
Development Team
Skype : geoffrey.mcgill
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: 2/3/2010 3:20:17 AM
Posts: 62,
Posted 8/20/2009 8:18:03 AM

Group: Coolite Premium Member & Early Adopter
Has anyone tried this with an MVC project? I am struggling to get it working properly.  I can see that the control is being rendered into the page okay but the script that creates the javascript object is not being rendered.
Last Login: 2/3/2010 3:20:17 AM
Posts: 62,
Posted 8/20/2009 9:18:46 AM

Group: Coolite Premium Member & Early Adopter
Sorted it, I had no form tag.  Now I just need to get the icons passing through MVC routes.
Last Login: 2/3/2010 3:20:17 AM
Posts: 62,
Posted 8/21/2009 4:38:56 AM

Group: Coolite Premium Member & Early Adopter
I have got it all working now.

I did find a few bugs when getting everything working how I wanted.  In FileUploadModule.cs, about Line 107 in OnProcessPostFile the following line:

Context.Response.Write(string.Format("{'success':false,'error':\"{0}\"}", Coolite.Utilities.StringUtils.Enquote(e.Message)));

should read (note the double escaping on {{ and }}):

Context.Response.Write(string.Format("{{'success':false,'error':\"{0}\"}}", Coolite.Utilities.StringUtils.Enquote(e.Message)));

The next problem I am trying to fix is that this data is put into the stream but then a ThreadAbortException occurs on Context.Response.End() which causes the Exception HTML to be put into the response (attempted to modify headers) which then measns the JSON object is broken on the client.
Last Login: Today @ 7:21:28 AM
Posts: 306,
Posted 11/3/2009 3:10:13 AM

Group: Coolite Premium Member & Early Adopter
Are you guys planning to update it to 1.0?

To Geoff: Will you guys be officially including it in 1.0?

Amit Pareek
Web Developer,
CakeWalk IT Solutions
« Prev Topic | Next Topic »
«««1234
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 4:38pm