How is going with you?
So you say that you didn't use ajax for uploading a file, only trough standard form multipart?
Do you know is is possible to that with ajax?
Thanks Dan,
Mircea
On 6/19/06, Dan Bunea <[EMAIL PROTECTED]> wrote:
Hi Mircea,
We have done it succesfully in the past, but without ajax for the upload:
[Layout("default_en")]
[Filter(ExecuteEnum.BeforeAction, typeof(PublicAuthFilter))]
public class RegistrationController:BaseController
{
...
public void UploadApplicationForm(HttpPostedFile file, long applicationID)
{
//save app form
Application a = Application.Find(applicationID);
//if upload present, persist file on server
if (file.ContentLength>0)
{
SaveFile(file, a);
}
//display upload declaration of conformity
PropertyBag["applicationID"] = a.Id;
this.RenderView ("step3");
}
...
Dan
On Mon, 19 Jun 2006 15:11:20 +0400, Mircea Jivoin <[EMAIL PROTECTED]>
wrote:
> ok, do you have any example where I can see the implementation?
> Maybe I'm doing something wrong?
> Is it a HttpPostedFile or byte[] binded in the controller?
>
> If I use a simple form with multipart then the HttpPostedFile is binded
> ok
> but with ajaxhelper not.
> Thnaks,
> Mircea
>
> On 6/18/06, Henry Conceição <[EMAIL PROTECTED]> wrote:
>>
>> Yup. The problem was related with the form's enconding (multipart...)
>> and the browser's XmlHttpRequest object.
>>
>> On 6/18/06, hammett <[EMAIL PROTECTED]> wrote:
>> > Last time I checked this wasn't supported by the js lib. You may check
>> > the latest version at
>> >
>> > http://prototype.conio.net/
>> >
>> > On 6/18/06, Mircea Jivoin < [EMAIL PROTECTED]> wrote:
>> > > Hi everyone,
>> > >
>> > > I need some help with file uploading using AjaxHelper.
>> > > I'm doing it this way:
>> >
>> >
>> > --
>> > Cheers,
>> > hammett
>> > http://hammett.castleproject.org/
>> >
>> >
>> > _______________________________________________
>> > CastleProject-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/castleproject-users
>> >
>>
>>
>> --
>> Cheers,
>> Henry Conceição
>>
>>
>> _______________________________________________
>> CastleProject-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/castleproject-users
>>
--
Dan Bunea
http://danbunea.blogspot.com
_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users
_______________________________________________ CastleProject-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/castleproject-users
