Re: [WebDNA] plupload ?

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108310
interpreted = N
texte = --20cf3036387d088eb604b7824f31 Content-Type: text/plain; charset=ISO-8859-1 Is this similar to the drag and drop upload in gmail? I can drop multiple files and they copy over as attachments. I think I can do the same in google docs. Bill On Fri, Jan 27, 2012 at 7:07 AM, Steve Craig wrote: > I'll try a few tests in other browsers, it will work for me using Flash, I > just would have preferred not to rely on it. I'm just being fussy. > > I am using version 1.5.2 of plupload and up to date browsers. > > I'll keep fiddling and see what I get, thanks for the help. > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > On 26 Jan 2012, at 19:08, aaronmichaelmusic@gmail.com wrote: > > Craig, > > Are you trying this in different browsers? > > The implementation of the runtimes are different with each browser. The > order you specify is important because if the first in line isn't > supported, then plupload will try the next in line and so on. The problem > is that with something like HTML5, the support should be there (if you're > using up-to-date browser), but the implementation varies a lot between > browsers and versions. Flash and gears have been the most reliable for me. > HTML5 is the most finicky I've found. I opt out of drag-n-drop, but it > works just how I want it to in every browser. > > The random name thing is weird. I assume you're using Version 1.5.2? I'm > using 1.4.2. I wonder if this is a bug in the new version? > > On Jan 26, 2012, at 1:46 PM, Steve Craig wrote: > > Thanks, I tried it and yours does the same. If you remove flash from the > runtimes variable it gives me random names. > > I will leave it in but I just wanted to have something that wasn't > dependant on flash being there. > > Thanks anyway > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > On 26 Jan 2012, at 18:35, Thierry Almy wrote: > > sure, here it is ... > > I kept the files in its original directories (upload.dna -> examples and > jquery_ui_widget.dna -> jquery) > > just change the target upload folder ... > > I'm on OS X Lion > > Thierry > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > > > > Am 26.01.2012 um 19:28 schrieb Steve Craig: > > Can you send me your code that you used for the start page? The > example jquery_ui_widget.html has reference to Flash in the > > and also in the... > > runtimes : 'flash,html5,browserplus,silverlight,gears,html4', > > If I change the runtimes variable to just html5 for example, it all works > but I am back to random names, only works correctly if the runtimes include > flash. Maybe your code is different or you have a different download to me? > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > On 26 Jan 2012, at 17:54, Thierry Almy wrote: > > Aaron, > > wow, I implemented it within 5 minutes ... awesome ... many thanks!!! > > The uploaded file is written with a random name. > I modified your script a bit, to rename it to the original name after > being uploaded: > > > [formvariables] > [showif [name]^name="name"] > [text show=t]_fileName=[value][/text] > [/showif] > [showif [name]^name="chunk"] > [text]_chunk=[value][/text] > [/showif] > [showif [name]^name="chunks"] > [text]_chunks=[value][/text] > [/showif] > [showif [name]^name="destination"][!]my custom paramater[/!] > [text]_destination=[value][/text] > [/showif] > > [showif [name]^name="file"] > [!]**** replace spaces with underscores in filename ****[/!] > [text]_filename=[listwords words=[_filename]&delimiters= ][hideif > [index]=1]_[/hideif][word][/listwords][/text] > [text show=f]orig_filename=[Middle > StartAfter=filename="&EndBefore="][name][/middle][/text] > [if ("[chunk]"="0")] > [then] > [writefile [_destination][_filename]][value][/writefile][!]writefile for > first chunk[/!] > [/then] > [else] > [appendfile [_destination][_filename]][value][/appendfile][!]appendfile > for proceeding chunks[/!] > [/else] > [/if] > [/showif] > [/formvariables] > > [showif [_chunk]=[math][_chunks]-1[/math]][!]if last chunk ---- chunks is > the total #integer of chunks - chunk(singular) is the particular chunk > starting with 0[/!] > [!]some function here[/!] > [MoveFile from=[_destination][_filename]&to=[_destination][orig_filename]] > [/showif] > > > > > Am 26.01.2012 um 15:55 schrieb aaronmichaelmusic@gmail.com: > > Sure, here it is... > > First, in my plupload page (I'm using the jquery widget version), I add > this line in the javascript options > > [code] > multipart_params : { 'destination': '[destination]' }, > [/code] > > I also set my chunk size down a little lower than default. I didn't > realize that the newest build of webDNA7 had any improvements on the file > upload issue. Anyway, when I was using an earlier build I had tweaked > fastcgi and the chunking rate to what was optimum for me. > > [code] > chunk_size : '500kb', > [/code] > > where destination is a directory that I specify dynamically. I'm my code > example, I'm using an absolute path (starting from the domain level of > course) and ending in "/". (ie /images/) > > then, replace upload.php with this, upload.dna > > [code] > [formvariables] > [showif [name]^name="name"] > [text]_fileName=[value][/text] > [/showif] > [showif [name]^name="chunk"] > [text]_chunk=[value][/text] > [/showif] > [showif [name]^name="chunks"] > [text]_chunks=[value][/text] > [/showif] > [showif [name]^name="destination"][!]my custom paramater[/!] > [text]_destination=[value][/text] > [/showif] > > [showif [name]^name="file"] > [!]**** replace spaces with underscores in filename ****[/!] > [text]_filename=[listwords words=[_filename]&delimiters= ][hideif > [index]=1]_[/hideif][word][/listwords][/text] > > [if ("[chunk]"="0")] > [then] > [writefile [_destination][_filename]][value][/writefile][!]writefile for > first chunk[/!] > [/then] > [else] > [appendfile [_destination][_filename]][value][/appendfile][!]appendfile > for proceeding chunks[/!] > [/else] > [/if] > [/showif] > [/formvariables] > [/code] > > > add this if you want to do something after the file has completely > uploaded... > > [code] > [showif [_chunk]=[math][_chunks]-1[/math]][!]if last chunk ---- chunks is > the total #integer of chunks - chunk(singular) is the particular chunk > starting with 0[/!] > [!]some function here[/!] > [/showif] > [/code] > > > On Jan 26, 2012, at 8:37 AM, Thierry Almy wrote: > > Aaron, > > > in a previous topic you mentioned the upload script from plupload.com, > looks very nice! > > > Did you write your own WebDNA as replacement for the upload.php? > > (i don't wanna run php if not neccessary ...) > > > Would you min sharing your code? > > > Thierry--------------------------------------------------------- > > This message is sent to you because you are subscribed to > > the mailing list . > > To unsubscribe, E-mail to: > > archives: http://mail.webdna.us/list/talk@webdna.us > > Bug Reporting: support@webdna.us > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > **** > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > **** > > > **** > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > **** > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > **** > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > --20cf3036387d088eb604b7824f31 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Is this similar to the drag and drop upload in gmail? =A0I can drop multipl= e files and they copy over as attachments. =A0I think I can do the same in = google docs. =A0

Bill

= On Fri, Jan 27, 2012 at 7:07 AM, Steve Craig <steve@asylumweb.com> wrote:
I'll= try a few tests in other browsers, it will work for me using Flash, I just= would have preferred not to rely on it. I'm just being fussy.

I am using version 1.5.2 of plupload and up to date browsers= .=A0

I'll keep fiddling and see what I get, thanks f= or the help.

Cheers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Asyl= um Interactive Ltd
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Email: steve@asylu= mweb.com
Skype: s.craig - iChat: steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=



On 26 Jan 2012, at 19= :08, aaron= michaelmusic@gmail.com wrote:

Craig,

Are you trying this in different browsers? =A0

The implementation of the runtimes are different wit= h each browser. =A0The order you specify is important because if the first = in line isn't supported, then plupload will try the next in line and so= on. =A0The problem is that with something like HTML5, the support should b= e there (if you're using up-to-date browser), but the implementation va= ries a lot between browsers and versions. =A0Flash and gears have been the = most reliable for me. =A0HTML5 is the most finicky I've found. =A0I opt= out of drag-n-drop, but it works just how I want it to in every browser. = =A0

The random name thing is weird. =A0I assume you're = using Version 1.5.2? =A0I'm using 1.4.2. =A0I wonder if this is a bug i= n the new version?

On Jan 26, 2012, at 1:46 PM, Ste= ve Craig wrote:

Thanks, I= tried it and yours does the same. If you remove flash from the runtimes va= riable it gives me random names.

I will leave it in but = I just wanted to have something that wasn't dependant on flash being th= ere.

Thanks anyway
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Asyl= um Interactive Ltd
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Email: steve@asylu= mweb.com
Skype: s.craig - iChat: steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=



On 26 Jan 2012, at 18:35, Thierry Almy wrote:

sure, here it = is ...

I kept the files in its original directorie= s (upload.dna -> examples and jquery_ui_widget.dna -> jquery)

just change the target upload folder ...

=
I'm on OS X Lion=A0

Thierry


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us<plupload.zip>


=
Am 26.01.2012 um 19:28 schrieb Steve Craig:
Can yo= u send me your code that you used for the start page? The example=A0jquery_= ui_widget.html has reference to Flash in the <script tags...

<script type=3D"text/javascript" src=3D"..= /../js/plupload.flash.js"></script>

= and also in the...

runtimes : 'flash,html5,brow= serplus,silverlight,gears,html4',

If I change the runtimes variable to just html5 for exa= mple, it all works but I am back to random names, only works correctly if t= he runtimes include flash. Maybe your code is different or you have a diffe= rent download to me?

Cheers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Asyl= um Interactive Ltd
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Email: steve@asylu= mweb.com
Skype: s.craig - iChat: steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=



On 26 Jan 2012, at 17:54, Thierry Almy wrote:

Aaron,

wow, I implemented it within 5 minutes ... awesome ... many th= anks!!!

The uploaded file is written with a random name.
I= modified your script a bit, to rename it to the original name after being = uploaded:


[formvariables]
[showif [name]^name=3D&qu= ot;name"]
[tex= t show=3Dt]_fileName=3D[value][/text]
[/showif]
[showif [name]^name=3D&qu= ot;chunk"]
[te= xt]_chunk=3D[value][/text]
= [/showif]
[showif [name]^name=3D&qu= ot;chunks"]
[t= ext]_chunks=3D[value][/text]
[/showif]
[showif [name]^name=3D&qu= ot;destination"][!]my custom paramater[/!]
[text]_destination=3D[value][/text]
= [/showif]

[showif [n= ame]^name=3D"file"]

[!]**** = replace spaces with underscores in filename ****[/!]
[text]_filename=3D[listw= ords words=3D[_filename]&delimiters=3D ][hideif [index]=3D1]_[/hideif][= word][/listwords][/text]
<= /span>[text show=3Df]orig_filename=3D[Middle StartA= fter=3Dfilename=3D"&EndBefore=3D"][name][/middle][/text]

[if ("[chunk]"=3D"0"= )]
[then]
[writefile [_destinatio= n][_filename]][value][/writefile][!]writefile for first chunk[/!]
[/then]
[else]
[appendfile [_destinati= on][_filename]][value][/appendfile][!]appendfile for proceeding chunks[/!]<= /div>
[/else]
<= span style=3D"white-space:pre-wrap">[/if]
[/showif]
[/for= mvariables]

[showif [_chunk]=3D[math][_chunks]-1[/= math]][!]if last chunk ---- chunks is the total #integer of chunks - chunk(= singular) is the particular chunk starting with 0[/!]
[!]some function here[/!]=
[MoveFile from=3D[_destination][_filename]&to=3D[_destination][ori= g_filename]]
[/showif]




Am 26.01.2012 um 15:55 schrieb aaronmichaelmusic@gmail.com<= /a>:

Sure, here it is...

First, in my = plupload page (I'm using the jquery widget version), I add this line in= the javascript options

[code]
multipart_params : { 'destinat= ion': '[destination]' },
[/code]

I also set my chunk size down a little lower than default. = =A0I didn't realize that the newest build of webDNA7 had any improvemen= ts on the file upload issue. =A0Anyway, when I was using an earlier build I= had tweaked fastcgi and the chunking rate to what was optimum for me.

[code]
chunk_size : '500kb',
[/code]

where destina= tion is a directory that I specify dynamically. =A0I'm my code example,= I'm using an absolute path (starting from the domain level of course) = and ending in "/". =A0(ie /images/)

then, replace upload.php with this, upload.dna

[code]
[formva= riables]
[showif [name]^nam= e=3D"name"]
[text]_fileName=3D[value][/text] [/showif]
[showif [name]^name=3D"chunk"]
[text]_chunk=3D[value][/text]
[/showif]
[showif [name]^name=3D"chunks"]
[text]_chunks=3D[value][/text]
[/showif]
[showif [name]^name=3D"destination"][= !]my custom paramater[/!]
<= span style=3D"white-space:pre-wrap">[text]_destination=3D[value][/t= ext]
[/showif]

[showif [name]^name=3D"file"][!]**** replace spaces with underscores in filename ****[/= !]
[text]_filename=3D[listwords words=3D[_filename]&delimit= ers=3D ][hideif [index]=3D1]_[/hideif][word][/listwords][/text]

[if ("[chunk]"=3D"0")]
[then]
[writefile [_destina= tion][_filename]][value][/writefile][!]writefile for first chunk[/!]
[/then]
[else]
[appendfile [_destination][_filename]][= value][/appendfile][!]appendfile for proceeding chunks[/!]
[/else]
[/if]
[/showif]
[/formvariables]
[/code]


add this if you want to do something= after the file has completely uploaded...

[code]
[showif [_chunk= ]=3D[math][_chunks]-1[/math]][!]if last chunk ---- chunks is the total #int= eger of chunks - chunk(singular) is the particular chunk starting with 0[/!= ]
[!]some function here[/!]
[= /showif]
[/code]


On Jan 26, 2012, at 8:37 AM, Thierry Almy wr= ote:

Aaron,

in a previous topic you mentione= d the upload script from plupload.com, looks very nice!

Did you write your own WebDNA as rep= lacement for the upload.php?
(i d= on't wanna run php if not neccessary ...)

Would you min sharing your code?=

Thierry---------------------------------------------------------=
This message is sent to you because = you are subscribed to
the mailing= list <talk@webdna.u= s>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.= us/list/talk@webdna.us
Bug Reporting: support@webdna.us
---------------------------------------------------------
This message = is sent to you because you are subscribed to
the mailing list <ta= lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
arch= ives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--20cf3036387d088eb604b7824f31-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] plupload ? (William DeVaul 2012)
  2. Re: [WebDNA] plupload ? (Steve Craig 2012)
  3. Re: [WebDNA] plupload ? (aaronmichaelmusic@gmail.com 2012)
  4. Re: [WebDNA] plupload ? (Steve Craig 2012)
  5. Re: [WebDNA] plupload ? (Thierry Almy 2012)
  6. Re: [WebDNA] plupload ? (Steve Craig 2012)
  7. Re: [WebDNA] plupload ? (aaronmichaelmusic@gmail.com 2012)
  8. Re: [WebDNA] plupload ? (Steve Craig 2012)
  9. Re: [WebDNA] plupload ? (Thierry Almy 2012)
  10. Re: [WebDNA] plupload ? (Steve Craig 2012)
  11. Re: [WebDNA] plupload ? (Steve Craig 2012)
  12. Re: [WebDNA] plupload ? (Thierry Almy 2012)
  13. Re: [WebDNA] plupload ? (aaronmichaelmusic@gmail.com 2012)
  14. [WebDNA] plupload ? (Thierry Almy 2012)
--20cf3036387d088eb604b7824f31 Content-Type: text/plain; charset=ISO-8859-1 Is this similar to the drag and drop upload in gmail? I can drop multiple files and they copy over as attachments. I think I can do the same in google docs. Bill On Fri, Jan 27, 2012 at 7:07 AM, Steve Craig wrote: > I'll try a few tests in other browsers, it will work for me using Flash, I > just would have preferred not to rely on it. I'm just being fussy. > > I am using version 1.5.2 of plupload and up to date browsers. > > I'll keep fiddling and see what I get, thanks for the help. > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > On 26 Jan 2012, at 19:08, aaronmichaelmusic@gmail.com wrote: > > Craig, > > Are you trying this in different browsers? > > The implementation of the runtimes are different with each browser. The > order you specify is important because if the first in line isn't > supported, then plupload will try the next in line and so on. The problem > is that with something like HTML5, the support should be there (if you're > using up-to-date browser), but the implementation varies a lot between > browsers and versions. Flash and gears have been the most reliable for me. > HTML5 is the most finicky I've found. I opt out of drag-n-drop, but it > works just how I want it to in every browser. > > The random name thing is weird. I assume you're using Version 1.5.2? I'm > using 1.4.2. I wonder if this is a bug in the new version? > > On Jan 26, 2012, at 1:46 PM, Steve Craig wrote: > > Thanks, I tried it and yours does the same. If you remove flash from the > runtimes variable it gives me random names. > > I will leave it in but I just wanted to have something that wasn't > dependant on flash being there. > > Thanks anyway > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > On 26 Jan 2012, at 18:35, Thierry Almy wrote: > > sure, here it is ... > > I kept the files in its original directories (upload.dna -> examples and > jquery_ui_widget.dna -> jquery) > > just change the target upload folder ... > > I'm on OS X Lion > > Thierry > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > > > > Am 26.01.2012 um 19:28 schrieb Steve Craig: > > Can you send me your code that you used for the start page? The > example jquery_ui_widget.html has reference to Flash in the > > and also in the... > > runtimes : 'flash,html5,browserplus,silverlight,gears,html4', > > If I change the runtimes variable to just html5 for example, it all works > but I am back to random names, only works correctly if the runtimes include > flash. Maybe your code is different or you have a different download to me? > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > > > On 26 Jan 2012, at 17:54, Thierry Almy wrote: > > Aaron, > > wow, I implemented it within 5 minutes ... awesome ... many thanks!!! > > The uploaded file is written with a random name. > I modified your script a bit, to rename it to the original name after > being uploaded: > > > [formvariables] > [showif [name]^name="name"] > [text show=t]_fileName=[value][/text] > [/showif] > [showif [name]^name="chunk"] > [text]_chunk=[value][/text] > [/showif] > [showif [name]^name="chunks"] > [text]_chunks=[value][/text] > [/showif] > [showif [name]^name="destination"][!]my custom paramater[/!] > [text]_destination=[value][/text] > [/showif] > > [showif [name]^name="file"] > [!]**** replace spaces with underscores in filename ****[/!] > [text]_filename=[listwords words=[_filename]&delimiters= ][hideif > [index]=1]_[/hideif][word][/listwords][/text] > [text show=f]orig_filename=[Middle > StartAfter=filename="&EndBefore="][name][/middle][/text] > [if ("[chunk]"="0")] > [then] > [writefile [_destination][_filename]][value][/writefile][!]writefile for > first chunk[/!] > [/then] > [else] > [appendfile [_destination][_filename]][value][/appendfile][!]appendfile > for proceeding chunks[/!] > [/else] > [/if] > [/showif] > [/formvariables] > > [showif [_chunk]=[math][_chunks]-1[/math]][!]if last chunk ---- chunks is > the total #integer of chunks - chunk(singular) is the particular chunk > starting with 0[/!] > [!]some function here[/!] > [MoveFile from=[_destination][_filename]&to=[_destination][orig_filename]] > [/showif] > > > > > Am 26.01.2012 um 15:55 schrieb aaronmichaelmusic@gmail.com: > > Sure, here it is... > > First, in my plupload page (I'm using the jquery widget version), I add > this line in the javascript options > > [code] > multipart_params : { 'destination': '[destination]' }, > [/code] > > I also set my chunk size down a little lower than default. I didn't > realize that the newest build of webDNA7 had any improvements on the file > upload issue. Anyway, when I was using an earlier build I had tweaked > fastcgi and the chunking rate to what was optimum for me. > > [code] > chunk_size : '500kb', > [/code] > > where destination is a directory that I specify dynamically. I'm my code > example, I'm using an absolute path (starting from the domain level of > course) and ending in "/". (ie /images/) > > then, replace upload.php with this, upload.dna > > [code] > [formvariables] > [showif [name]^name="name"] > [text]_fileName=[value][/text] > [/showif] > [showif [name]^name="chunk"] > [text]_chunk=[value][/text] > [/showif] > [showif [name]^name="chunks"] > [text]_chunks=[value][/text] > [/showif] > [showif [name]^name="destination"][!]my custom paramater[/!] > [text]_destination=[value][/text] > [/showif] > > [showif [name]^name="file"] > [!]**** replace spaces with underscores in filename ****[/!] > [text]_filename=[listwords words=[_filename]&delimiters= ][hideif > [index]=1]_[/hideif][word][/listwords][/text] > > [if ("[chunk]"="0")] > [then] > [writefile [_destination][_filename]][value][/writefile][!]writefile for > first chunk[/!] > [/then] > [else] > [appendfile [_destination][_filename]][value][/appendfile][!]appendfile > for proceeding chunks[/!] > [/else] > [/if] > [/showif] > [/formvariables] > [/code] > > > add this if you want to do something after the file has completely > uploaded... > > [code] > [showif [_chunk]=[math][_chunks]-1[/math]][!]if last chunk ---- chunks is > the total #integer of chunks - chunk(singular) is the particular chunk > starting with 0[/!] > [!]some function here[/!] > [/showif] > [/code] > > > On Jan 26, 2012, at 8:37 AM, Thierry Almy wrote: > > Aaron, > > > in a previous topic you mentioned the upload script from plupload.com, > looks very nice! > > > Did you write your own WebDNA as replacement for the upload.php? > > (i don't wanna run php if not neccessary ...) > > > Would you min sharing your code? > > > Thierry--------------------------------------------------------- > > This message is sent to you because you are subscribed to > > the mailing list . > > To unsubscribe, E-mail to: > > archives: http://mail.webdna.us/list/talk@webdna.us > > Bug Reporting: support@webdna.us > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > **** > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > **** > > > **** > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > **** > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > **** > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list **. To > unsubscribe, E-mail to: ** archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > --20cf3036387d088eb604b7824f31 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Is this similar to the drag and drop upload in gmail? =A0I can drop multipl= e files and they copy over as attachments. =A0I think I can do the same in = google docs. =A0

Bill

= On Fri, Jan 27, 2012 at 7:07 AM, Steve Craig <steve@asylumweb.com> wrote:
I'll= try a few tests in other browsers, it will work for me using Flash, I just= would have preferred not to rely on it. I'm just being fussy.

I am using version 1.5.2 of plupload and up to date browsers= .=A0

I'll keep fiddling and see what I get, thanks f= or the help.

Cheers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Asyl= um Interactive Ltd
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Email: steve@asylu= mweb.com
Skype: s.craig - iChat: steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=



On 26 Jan 2012, at 19= :08, aaron= michaelmusic@gmail.com wrote:

Craig,

Are you trying this in different browsers? =A0

The implementation of the runtimes are different wit= h each browser. =A0The order you specify is important because if the first = in line isn't supported, then plupload will try the next in line and so= on. =A0The problem is that with something like HTML5, the support should b= e there (if you're using up-to-date browser), but the implementation va= ries a lot between browsers and versions. =A0Flash and gears have been the = most reliable for me. =A0HTML5 is the most finicky I've found. =A0I opt= out of drag-n-drop, but it works just how I want it to in every browser. = =A0

The random name thing is weird. =A0I assume you're = using Version 1.5.2? =A0I'm using 1.4.2. =A0I wonder if this is a bug i= n the new version?

On Jan 26, 2012, at 1:46 PM, Ste= ve Craig wrote:

Thanks, I= tried it and yours does the same. If you remove flash from the runtimes va= riable it gives me random names.

I will leave it in but = I just wanted to have something that wasn't dependant on flash being th= ere.

Thanks anyway
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Asyl= um Interactive Ltd
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Email: steve@asylu= mweb.com
Skype: s.craig - iChat: steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=



On 26 Jan 2012, at 18:35, Thierry Almy wrote:

sure, here it = is ...

I kept the files in its original directorie= s (upload.dna -> examples and jquery_ui_widget.dna -> jquery)

just change the target upload folder ...

=
I'm on OS X Lion=A0

Thierry


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us<plupload.zip>


=
Am 26.01.2012 um 19:28 schrieb Steve Craig:
Can yo= u send me your code that you used for the start page? The example=A0jquery_= ui_widget.html has reference to Flash in the <script tags...

<script type=3D"text/javascript" src=3D"..= /../js/plupload.flash.js"></script>

= and also in the...

runtimes : 'flash,html5,brow= serplus,silverlight,gears,html4',

If I change the runtimes variable to just html5 for exa= mple, it all works but I am back to random names, only works correctly if t= he runtimes include flash. Maybe your code is different or you have a diffe= rent download to me?

Cheers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Asyl= um Interactive Ltd
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Email: steve@asylu= mweb.com
Skype: s.craig - iChat: steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=



On 26 Jan 2012, at 17:54, Thierry Almy wrote:

Aaron,

wow, I implemented it within 5 minutes ... awesome ... many th= anks!!!

The uploaded file is written with a random name.
I= modified your script a bit, to rename it to the original name after being = uploaded:


[formvariables]
[showif [name]^name=3D&qu= ot;name"]
[tex= t show=3Dt]_fileName=3D[value][/text]
[/showif]
[showif [name]^name=3D&qu= ot;chunk"]
[te= xt]_chunk=3D[value][/text]
= [/showif]
[showif [name]^name=3D&qu= ot;chunks"]
[t= ext]_chunks=3D[value][/text]
[/showif]
[showif [name]^name=3D&qu= ot;destination"][!]my custom paramater[/!]
[text]_destination=3D[value][/text]
= [/showif]

[showif [n= ame]^name=3D"file"]

[!]**** = replace spaces with underscores in filename ****[/!]
[text]_filename=3D[listw= ords words=3D[_filename]&delimiters=3D ][hideif [index]=3D1]_[/hideif][= word][/listwords][/text]
<= /span>[text show=3Df]orig_filename=3D[Middle StartA= fter=3Dfilename=3D"&EndBefore=3D"][name][/middle][/text]

[if ("[chunk]"=3D"0"= )]
[then]
[writefile [_destinatio= n][_filename]][value][/writefile][!]writefile for first chunk[/!]
[/then]
[else]
[appendfile [_destinati= on][_filename]][value][/appendfile][!]appendfile for proceeding chunks[/!]<= /div>
[/else]
<= span style=3D"white-space:pre-wrap">[/if]
[/showif]
[/for= mvariables]

[showif [_chunk]=3D[math][_chunks]-1[/= math]][!]if last chunk ---- chunks is the total #integer of chunks - chunk(= singular) is the particular chunk starting with 0[/!]
[!]some function here[/!]=
[MoveFile from=3D[_destination][_filename]&to=3D[_destination][ori= g_filename]]
[/showif]




Am 26.01.2012 um 15:55 schrieb aaronmichaelmusic@gmail.com<= /a>:

Sure, here it is...

First, in my = plupload page (I'm using the jquery widget version), I add this line in= the javascript options

[code]
multipart_params : { 'destinat= ion': '[destination]' },
[/code]

I also set my chunk size down a little lower than default. = =A0I didn't realize that the newest build of webDNA7 had any improvemen= ts on the file upload issue. =A0Anyway, when I was using an earlier build I= had tweaked fastcgi and the chunking rate to what was optimum for me.

[code]
chunk_size : '500kb',
[/code]

where destina= tion is a directory that I specify dynamically. =A0I'm my code example,= I'm using an absolute path (starting from the domain level of course) = and ending in "/". =A0(ie /images/)

then, replace upload.php with this, upload.dna

[code]
[formva= riables]
[showif [name]^nam= e=3D"name"]

[text]_fileName=3D[value][/text] [/showif]
[showif [name]^name=3D"chunk"]
[text]_chunk=3D[value][/text]
[/showif]
[showif [name]^name=3D"chunks"]
[text]_chunks=3D[value][/text]
[/showif]
[showif [name]^name=3D"destination"][= !]my custom paramater[/!]
<= span style=3D"white-space:pre-wrap">[text]_destination=3D[value][/t= ext]
[/showif]

[showif [name]^name=3D"file"][!]**** replace spaces with underscores in filename ****[/= !]
[text]_filename=3D[listwords words=3D[_filename]&delimit= ers=3D ][hideif [index]=3D1]_[/hideif][word][/listwords][/text]

[if ("[chunk]"=3D"0")]
[then]
[writefile [_destina= tion][_filename]][value][/writefile][!]writefile for first chunk[/!]
[/then]
[else]
[appendfile [_destination][_filename]][= value][/appendfile][!]appendfile for proceeding chunks[/!]
[/else]
[/if]
[/showif]
[/formvariables]
[/code]


add this if you want to do something= after the file has completely uploaded...

[code]
[showif [_chunk= ]=3D[math][_chunks]-1[/math]][!]if last chunk ---- chunks is the total #int= eger of chunks - chunk(singular) is the particular chunk starting with 0[/!= ]
[!]some function here[/!]
[= /showif]
[/code]


On Jan 26, 2012, at 8:37 AM, Thierry Almy wr= ote:

Aaron,

in a previous topic you mentione= d the upload script from plupload.com, looks very nice!

Did you write your own WebDNA as rep= lacement for the upload.php?
(i d= on't wanna run php if not neccessary ...)

Would you min sharing your code?=

Thierry---------------------------------------------------------=
This message is sent to you because = you are subscribed to
the mailing= list <talk@webdna.u= s>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.= us/list/talk@webdna.us
Bug Reporting: support@webdna.us
---------------------------------------------------------
This message = is sent to you because you are subscribed to
the mailing list <ta= lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
arch= ives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--20cf3036387d088eb604b7824f31-- William DeVaul

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] My failed cPanel and WebDNA experience ... (2016) .html with IIS4 (1999) Not really WebCat (1997) PSC recommends what date format yr 2000??? (1997) E-mailer error codes (1997) [Sum] function? (1997) Just a thought (1998) WebCat2: Found Items syntax, etc. (1997) Formating Tables w/[founditems] (1998) GuestBook example (1997) Re:2nd WebCatalog2 Feature Request (1996) HELP WITH DATES (1997) Multiple prices (1997) 2.0 Info (1997) emailer (1997) [WebDNA] Test (2008) how to add to triggers.db (1998) list items (1998) Sherlock and WebCat-2 (1998) Days in range (2002)