file upload -- multiple?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

file upload -- multiple?

blake watson
Hello, Seasiders,

I'm trying to work out a utility that allows my users to upload files
(text) and reports back certain information about those files.

First, Seaside is definitely one of the coolest, simplest frameworks
for this, I think.

Second, is the "multiple" feature available? My users will be
uploading a LOT of files.

===Blake===
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload -- multiple?

Philippe Marschall
On Sat, Apr 21, 2012 at 4:06 AM, blake <[hidden email]> wrote:
> Hello, Seasiders,
>
> I'm trying to work out a utility that allows my users to upload files
> (text) and reports back certain information about those files.
>
> First, Seaside is definitely one of the coolest, simplest frameworks
> for this, I think.
>
> Second, is the "multiple" feature available?

Not directly, but you can do

html fileUpload
  attributeAt: 'multiple' put: true

But I haven't yet checked out whether that works correctly with
callbacks. I created an issue for this [1]. My understanding though is
that browser support is spotty at best. You may want to look into a
JavaScript solution.

> My users will be
> uploading a LOT of files.

You may want to do load testing in this area. This hasn't historically
been a strength.

 [1] http://code.google.com/p/seaside/issues/detail?id=722

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload -- multiple?

Philippe Marschall
On Sat, Apr 21, 2012 at 7:35 PM, Philippe Marschall
<[hidden email]> wrote:

> On Sat, Apr 21, 2012 at 4:06 AM, blake <[hidden email]> wrote:
>> Hello, Seasiders,
>>
>> I'm trying to work out a utility that allows my users to upload files
>> (text) and reports back certain information about those files.
>>
>> First, Seaside is definitely one of the coolest, simplest frameworks
>> for this, I think.
>>
>> Second, is the "multiple" feature available?
>
> Not directly, but you can do
>
> html fileUpload
>  attributeAt: 'multiple' put: true
>
> But I haven't yet checked out whether that works correctly with
> callbacks.

It does not :-(

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload -- multiple?

blake watson
>
> It does not :-(

Well, damn. Is it a structural issue or something that I could maybe add?

Javascript-wise, there is a JQuery component that does multiple uploads, here:

http://blueimp.github.com/jQuery-File-Upload/

--is it feasible to hook that up to a Seaside app?
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload -- multiple?

Philippe Marschall
On Sat, Apr 21, 2012 at 10:10 PM, blake <[hidden email]> wrote:
>>
>> It does not :-(
>
> Well, damn. Is it a structural issue or something that I could maybe add?

There is an experimental implementation in the 3.1 repository [1]. In
theory it should work in 3.0 (You need only the Seaside-HTML5
package). Note this is experimental, barely tested (I only did a quick
test on the AJP adaptor) and we're not willing to commit to the API,
semantics or implementation at this point.

> Javascript-wise, there is a JQuery component that does multiple uploads, here:
>
> http://blueimp.github.com/jQuery-File-Upload/
>
> --is it feasible to hook that up to a Seaside app?

Without knowing what the plugin does at the HTTP level this is hard to tell.

 [1] http://www.squeaksource.com/Seaside31

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload -- multiple?

cdavidshaffer
In reply to this post by blake watson

On Apr 21, 2012, at 4:10 PM, blake wrote:

>>
>> It does not :-(
>
> Well, damn. Is it a structural issue or something that I could maybe add?
>
> Javascript-wise, there is a JQuery component that does multiple uploads, here:
>
> http://blueimp.github.com/jQuery-File-Upload/
>
> --is it feasible to hook that up to a Seaside app?
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


I regularly use Plupload to upload multiple files one through multiple requests.  I haven't had any problems with it (although I have't written a proper Seaside wrapper so the Smalltalk code is a big ugly).  I can send you a VisualWorks parcel off-list in case you want to port it.

David

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload -- multiple?

cdavidshaffer
In reply to this post by blake watson

On Apr 21, 2012, at 4:10 PM, blake wrote:

>>
>> It does not :-(
>
> Well, damn. Is it a structural issue or something that I could maybe add?
>
> Javascript-wise, there is a JQuery component that does multiple uploads, here:
>
> http://blueimp.github.com/jQuery-File-Upload/
>
> --is it feasible to hook that up to a Seaside app?


Blake,

Out of curiosity I had a quick look at jQuery-File-Upload.  It wouldn't be a problem to hook this up to Seaside.  In addition it appears that with this plugin you can get around the multiple-file-per-request problem by specifying the data-sequential-uploads attribute to true making it upload in the same manner as Plupload.  That is, if the user selects multiple files they are automatically uploaded sequentially through multiple single-file uploads to the server.

David

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload -- multiple?

blake watson
I'll see if I can work it out!

On Sun, Apr 22, 2012 at 9:13 AM, David Shaffer <[hidden email]> wrote:

>
> On Apr 21, 2012, at 4:10 PM, blake wrote:
>
>>>
>>> It does not :-(
>>
>> Well, damn. Is it a structural issue or something that I could maybe add?
>>
>> Javascript-wise, there is a JQuery component that does multiple uploads, here:
>>
>> http://blueimp.github.com/jQuery-File-Upload/
>>
>> --is it feasible to hook that up to a Seaside app?
>
>
> Blake,
>
> Out of curiosity I had a quick look at jQuery-File-Upload.  It wouldn't be a problem to hook this up to Seaside.  In addition it appears that with this plugin you can get around the multiple-file-per-request problem by specifying the data-sequential-uploads attribute to true making it upload in the same manner as Plupload.  That is, if the user selects multiple files they are automatically uploaded sequentially through multiple single-file uploads to the server.
>
> David
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload -- multiple?

Paul DeBruicker
Hi Blake

This old email may help in getting the plugin integrated with seaside:

http://lists.squeakfoundation.org/pipermail/seaside/2009-November/021912.html

It describes how to add a jquery plugin to the jQuery WidgetBox on squeak source.



On Apr 22, 2012, at 9:17 AM, blake <[hidden email]> wrote:

> I'll see if I can work it out!
>
> On Sun, Apr 22, 2012 at 9:13 AM, David Shaffer <[hidden email]> wrote:
>>
>> On Apr 21, 2012, at 4:10 PM, blake wrote:
>>
>>>>
>>>> It does not :-(
>>>
>>> Well, damn. Is it a structural issue or something that I could maybe add?
>>>
>>> Javascript-wise, there is a JQuery component that does multiple uploads, here:
>>>
>>> http://blueimp.github.com/jQuery-File-Upload/
>>>
>>> --is it feasible to hook that up to a Seaside app?
>>
>>
>> Blake,
>>
>> Out of curiosity I had a quick look at jQuery-File-Upload.  It wouldn't be a problem to hook this up to Seaside.  In addition it appears that with this plugin you can get around the multiple-file-per-request problem by specifying the data-sequential-uploads attribute to true making it upload in the same manner as Plupload.  That is, if the user selects multiple files they are automatically uploaded sequentially through multiple single-file uploads to the server.
>>
>> David
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside