Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working with .NET Upload Handler #2

Closed
Vakees opened this issue Feb 4, 2010 · 6 comments
Closed

Not Working with .NET Upload Handler #2

Vakees opened this issue Feb 4, 2010 · 6 comments

Comments

@Vakees
Copy link

Vakees commented Feb 4, 2010

Hi,

I'm trying to use this uploader on a Asp.NET project. I had a HttpHandler that worked with SWFUploader as well as Silverlight, however it wasn't unified and would like to try using Pluploader.

It seems context.Request.Files.Count is always zero or context.Request.InputStream.Length taking while to response, context.Request.QueryString.Count seems empty.

Any help would be appreciated.

Thanks,

@spocke
Copy link
Member

spocke commented Feb 4, 2010

Yes, the files are send as a binary stream not as mutlipart there is another issue open where I explain why we use direct binary streams instead of multipart encoding for the files.

@iesta
Copy link

iesta commented Feb 22, 2010

It does not work with Ruby on Rails either.
Any chance to have an optional multipart version?
Thanks a lot and congrats for the great work !

@spocke
Copy link
Member

spocke commented Feb 22, 2010

Yes, the next version will have multipart support.

@st-gwerner
Copy link

Also, a gotcha that I got trapped with using .Net and HTML4. Make sure to set the container setting as well as the browse_button setting, or else it will put the input controls outside of your form and not submit the data.

@macropodhq
Copy link

The uploader works fine in .NET. We're using it with great success.

Shameless self promotion HOWTO on using plupload with .NET: http://www.angrymonkeys.com.au/blog/2010/02/26/using-plupload-with-asp-net/

@die-antwort
Copy link

@iesta:

Finally, we managed to combine plupload with our new rails 3 app.

Here's how we managed:

javascript config:

multipart: true,
multipart_params: { "authenticity_token": $("meta[name=csrf-token]").attr("content") }

rails controller action (in our example we upload images to a gallery object):

@image = @gallery.images.new({ :source => params[:file], :gallery_id => params[:gallery_id]})

We simply remapped the passed params to a new hash.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants