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=.=A0I'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=3DSteve Craig - Asyl=um Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEmail: steve@asylu=mweb.comSkype: 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---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usOn 26 Jan 2012, at 19=:08, aaron=michaelmusic@gmail.com wrote:Craig,Are you trying this in different browsers? =A0The 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. ==A0The 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?---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usOn 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=3DSteve Craig - Asyl=um Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEmail: 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---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us<plupload.zip>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=A0Thierry =blockquote>=Am 26.01.2012 um 19:28 schrieb Steve Craig:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usCan 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=3DSteve Craig - Asyl=um Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEmail: 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=3DOn 26 Jan 2012, at 17:54, Thierry Almy wrote: wow, I implemented it within 5 minutes ... awesome ... many th=anks!!!Aaron, 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:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us[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 tothe mailing= list <talk@webdna.u=s>.To unsubscribe, E-mail to: <talk-leave@webdna.us=a>>archives: http://mail.webdna.=us/list/talk@webdna.usBug 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 tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us
|
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=.=A0I'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=3DSteve Craig - Asyl=um Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEmail: steve@asylu=mweb.comSkype: 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---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usOn 26 Jan 2012, at 19=:08, aaron=michaelmusic@gmail.com wrote:Craig,Are you trying this in different browsers? =A0The 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. ==A0The 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?---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usOn 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=3DSteve Craig - Asyl=um Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEmail: 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---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us<plupload.zip>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=A0Thierry =blockquote>=Am 26.01.2012 um 19:28 schrieb Steve Craig:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.usCan 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=3DSteve Craig - Asyl=um Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEmail: 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=3DOn 26 Jan 2012, at 17:54, Thierry Almy wrote: wow, I implemented it within 5 minutes ... awesome ... many th=anks!!!Aaron, 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:---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us[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 tothe mailing= list <talk@webdna.u=s>.To unsubscribe, E-mail to: <talk-leave@webdna.us=a>>archives: http://mail.webdna.=us/list/talk@webdna.usBug 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 tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: suppo=rt@webdna.us
DOWNLOAD WEBDNA NOW!
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...