Re: [WebDNA] plupload ?

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108294
interpreted = N
texte = --Apple-Mail=_771550F8-000D-4B74-B117-482363744BBB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I'm not sure about the random name thing - I've been using this same = script for at least a year now with no issue on Ubuntu boxes. Does = anyone know if different servers (os, webserver, etc) use different = conventions in regards to what appears in formvariables after a = multipart form submit? The order in which you specify the runtimes will affect performance and = browser compatibility. I think the default is: runtimes : 'flash,html5,browserplus,silverlight,gears,html4', In a particular instance, I've changed this to: runtimes : 'gears,flash,silverlight,html5,browserplus', and that has worked the best On Jan 26, 2012, at 1:14 PM, Steve Craig wrote: > Weirdly I am still getting the problem if Flash is not available and = it uses some other render method. It all works but I get the random = name. >=20 > Any thoughts >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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 - Asylum Interactive Ltd > Tel +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=3D > http://www.asylumweb.com > Email: steve@asylumweb.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 >=20 >=20 >=20 >=20 > On 26 Jan 2012, at 17:54, Thierry Almy wrote: >=20 >> Aaron, >>=20 >> wow, I implemented it within 5 minutes ... awesome ... many thanks!!! >>=20 >> 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: >>=20 >>=20 >> [formvariables] >> [showif [name]^name=3D"name"] >> [text show=3Dt]_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[/!] >> [text]_destination=3D[value][/text] >> [/showif] >>=20 >> [showif [name]^name=3D"file"] >> =09 >> [!]**** replace spaces with underscores in filename = ****[/!] >> [text]_filename=3D[listwords = words=3D[_filename]&delimiters=3D ][hideif = [index]=3D1]_[/hideif][word][/listwords][/text] >> [text show=3Df]orig_filename=3D[Middle = StartAfter=3Dfilename=3D"&EndBefore=3D"][name][/middle][/text] >> =09 >> [if ("[chunk]"=3D"0")] >> [then]=09 >> [writefile = [_destination][_filename]][value][/writefile][!]writefile for first = chunk[/!] >> [/then] >> [else] >> [appendfile = [_destination][_filename]][value][/appendfile][!]appendfile for = proceeding chunks[/!] >> [/else] >> [/if] >> [/showif] >> [/formvariables] >>=20 >> [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][orig_filename]] >> [/showif] >>=20 >>=20 >>=20 >>=20 >> Am 26.01.2012 um 15:55 schrieb aaronmichaelmusic@gmail.com: >>=20 >>> Sure, here it is... >>>=20 >>> First, in my plupload page (I'm using the jquery widget version), I = add this line in the javascript options >>>=20 >>> [code] >>> multipart_params : { 'destination': '[destination]' }, >>> [/code] >>>=20 >>> 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. >>>=20 >>> [code] >>> chunk_size : '500kb', >>> [/code] >>>=20 >>> 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/) >>>=20 >>> then, replace upload.php with this, upload.dna >>>=20 >>> [code] >>> [formvariables] >>> [showif [name]^name=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[/!] >>> [text]_destination=3D[value][/text] >>> [/showif] >>>=20 >>> [showif [name]^name=3D"file"] >>> [!]**** replace spaces with underscores in filename = ****[/!] >>> [text]_filename=3D[listwords = words=3D[_filename]&delimiters=3D ][hideif = [index]=3D1]_[/hideif][word][/listwords][/text] >>>=20 >>> [if ("[chunk]"=3D"0")] >>> [then]=09 >>> [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] >>>=20 >>>=20 >>> add this if you want to do something after the file has completely = uploaded... >>>=20 >>> [code] >>> [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[/!] >>> [/showif] >>> [/code] >>>=20 >>>=20 >>> On Jan 26, 2012, at 8:37 AM, Thierry Almy wrote: >>>=20 >>>> Aaron, >>>>=20 >>>> in a previous topic you mentioned the upload script from = plupload.com, looks very nice! >>>>=20 >>>> Did you write your own WebDNA as replacement for the upload.php? >>>> (i don't wanna run php if not neccessary ...) >>>>=20 >>>> Would you min sharing your code? >>>>=20 >>>> 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 >>>=20 >>> --------------------------------------------------------- >>> 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 >>=20 >> --------------------------------------------------------- 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 >=20 > --------------------------------------------------------- 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 --Apple-Mail=_771550F8-000D-4B74-B117-482363744BBB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I'm = not sure about the random name thing - I've been using this same script = for at least a year now with no issue on Ubuntu boxes.  Does anyone = know if different servers (os, webserver, etc) use different conventions = in regards to what appears in formvariables after a multipart form = submit?

The order in which you specify the runtimes = will affect performance and browser = compatibility.

I think the default = is:

runtimes : = 'flash,html5,browserplus,silverlight,gears,html4',

In a particular instance, I've changed this = to:

runtimes : = 'gears,flash,silverlight,html5,browserplus',

and = that has worked the = best


On Jan 26, 2012, = at 1:14 PM, Steve Craig wrote:

Weirdly I am still getting the = problem if Flash is not available and it uses some other render method. = It all works but I get the random name.

Any = thoughts

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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 - Asylum Interactive Ltd
Tel +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=3D
http://www.asylumweb.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 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=3D"name"]
= [text show=3Dt]_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[/!]
= [text]_destination=3D[value][/text]
= [/showif]

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

= [!]**** replace spaces with underscores in filename = ****[/!]
= [text]_filename=3D[listwords words=3D[_filename]&delimiters=3D = ][hideif [index]=3D1]_[/hideif][word][/listwords][/text]
= [text = show=3Df]orig_filename=3D[Middle = StartAfter=3Dfilename=3D"&EndBefore=3D"][name][/middle][/text]<= /div>
=
[if = ("[chunk]"=3D"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]

[show= if [_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][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=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[/!]
= [text]_destination=3D[value][/text]
= [/showif]

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

[if = ("[chunk]"=3D"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]=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[/!]
[/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 <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l= ist/talk@webdna.us
Bug = Reporting: support@webdna.us
---------------------------------------------------------
This = message is sent to you because you are subscribed to
the mailing list = <talk@webdna.us>.
To = unsubscribe, E-mail to: <talk-leave@webdna.us>
archi= ves: http://mail.webdna.us/l= ist/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/l= ist/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/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_771550F8-000D-4B74-B117-482363744BBB-- 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)
--Apple-Mail=_771550F8-000D-4B74-B117-482363744BBB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I'm not sure about the random name thing - I've been using this same = script for at least a year now with no issue on Ubuntu boxes. Does = anyone know if different servers (os, webserver, etc) use different = conventions in regards to what appears in formvariables after a = multipart form submit? The order in which you specify the runtimes will affect performance and = browser compatibility. I think the default is: runtimes : 'flash,html5,browserplus,silverlight,gears,html4', In a particular instance, I've changed this to: runtimes : 'gears,flash,silverlight,html5,browserplus', and that has worked the best On Jan 26, 2012, at 1:14 PM, Steve Craig wrote: > Weirdly I am still getting the problem if Flash is not available and = it uses some other render method. It all works but I get the random = name. >=20 > Any thoughts >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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 - Asylum Interactive Ltd > Tel +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=3D > http://www.asylumweb.com > Email: steve@asylumweb.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 >=20 >=20 >=20 >=20 > On 26 Jan 2012, at 17:54, Thierry Almy wrote: >=20 >> Aaron, >>=20 >> wow, I implemented it within 5 minutes ... awesome ... many thanks!!! >>=20 >> 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: >>=20 >>=20 >> [formvariables] >> [showif [name]^name=3D"name"] >> [text show=3Dt]_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[/!] >> [text]_destination=3D[value][/text] >> [/showif] >>=20 >> [showif [name]^name=3D"file"] >> =09 >> [!]**** replace spaces with underscores in filename = ****[/!] >> [text]_filename=3D[listwords = words=3D[_filename]&delimiters=3D ][hideif = [index]=3D1]_[/hideif][word][/listwords][/text] >> [text show=3Df]orig_filename=3D[Middle = StartAfter=3Dfilename=3D"&EndBefore=3D"][name][/middle][/text] >> =09 >> [if ("[chunk]"=3D"0")] >> [then]=09 >> [writefile = [_destination][_filename]][value][/writefile][!]writefile for first = chunk[/!] >> [/then] >> [else] >> [appendfile = [_destination][_filename]][value][/appendfile][!]appendfile for = proceeding chunks[/!] >> [/else] >> [/if] >> [/showif] >> [/formvariables] >>=20 >> [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][orig_filename]] >> [/showif] >>=20 >>=20 >>=20 >>=20 >> Am 26.01.2012 um 15:55 schrieb aaronmichaelmusic@gmail.com: >>=20 >>> Sure, here it is... >>>=20 >>> First, in my plupload page (I'm using the jquery widget version), I = add this line in the javascript options >>>=20 >>> [code] >>> multipart_params : { 'destination': '[destination]' }, >>> [/code] >>>=20 >>> 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. >>>=20 >>> [code] >>> chunk_size : '500kb', >>> [/code] >>>=20 >>> 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/) >>>=20 >>> then, replace upload.php with this, upload.dna >>>=20 >>> [code] >>> [formvariables] >>> [showif [name]^name=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[/!] >>> [text]_destination=3D[value][/text] >>> [/showif] >>>=20 >>> [showif [name]^name=3D"file"] >>> [!]**** replace spaces with underscores in filename = ****[/!] >>> [text]_filename=3D[listwords = words=3D[_filename]&delimiters=3D ][hideif = [index]=3D1]_[/hideif][word][/listwords][/text] >>>=20 >>> [if ("[chunk]"=3D"0")] >>> [then]=09 >>> [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] >>>=20 >>>=20 >>> add this if you want to do something after the file has completely = uploaded... >>>=20 >>> [code] >>> [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[/!] >>> [/showif] >>> [/code] >>>=20 >>>=20 >>> On Jan 26, 2012, at 8:37 AM, Thierry Almy wrote: >>>=20 >>>> Aaron, >>>>=20 >>>> in a previous topic you mentioned the upload script from = plupload.com, looks very nice! >>>>=20 >>>> Did you write your own WebDNA as replacement for the upload.php? >>>> (i don't wanna run php if not neccessary ...) >>>>=20 >>>> Would you min sharing your code? >>>>=20 >>>> 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 >>>=20 >>> --------------------------------------------------------- >>> 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 >>=20 >> --------------------------------------------------------- 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 >=20 > --------------------------------------------------------- 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 --Apple-Mail=_771550F8-000D-4B74-B117-482363744BBB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I'm = not sure about the random name thing - I've been using this same script = for at least a year now with no issue on Ubuntu boxes.  Does anyone = know if different servers (os, webserver, etc) use different conventions = in regards to what appears in formvariables after a multipart form = submit?

The order in which you specify the runtimes = will affect performance and browser = compatibility.

I think the default = is:

runtimes : = 'flash,html5,browserplus,silverlight,gears,html4',

In a particular instance, I've changed this = to:

runtimes : = 'gears,flash,silverlight,html5,browserplus',

and = that has worked the = best


On Jan 26, 2012, = at 1:14 PM, Steve Craig wrote:

Weirdly I am still getting the = problem if Flash is not available and it uses some other render method. = It all works but I get the random name.

Any = thoughts

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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 - Asylum Interactive Ltd
Tel +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=3D
http://www.asylumweb.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 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=3D"name"]
= [text show=3Dt]_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[/!]
= [text]_destination=3D[value][/text]
= [/showif]

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

= [!]**** replace spaces with underscores in filename = ****[/!]
= [text]_filename=3D[listwords words=3D[_filename]&delimiters=3D = ][hideif [index]=3D1]_[/hideif][word][/listwords][/text]
= [text = show=3Df]orig_filename=3D[Middle = StartAfter=3Dfilename=3D"&EndBefore=3D"][name][/middle][/text]<= /div>
=
[if = ("[chunk]"=3D"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]

[show= if [_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][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=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[/!]
= [text]_destination=3D[value][/text]
= [/showif]

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

[if = ("[chunk]"=3D"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]=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[/!]
[/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 <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l= ist/talk@webdna.us
Bug = Reporting: support@webdna.us
---------------------------------------------------------
This = message is sent to you because you are subscribed to
the mailing list = <talk@webdna.us>.
To = unsubscribe, E-mail to: <talk-leave@webdna.us>
archi= ves: http://mail.webdna.us/l= ist/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/l= ist/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/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_771550F8-000D-4B74-B117-482363744BBB-- aaronmichaelmusic@gmail.com

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:

no emailfolder errors? (2000) List archive status? (1999) upgrading (1997) [WebDNA] Snow Leoopard and v7 (2011) TCPConnect Help (2003) help with autenticate (1998) form to search page (2000) Append..... doesn't (2000) WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997) Error page mapping problems (2002) Mac System Experience (1998) EMERGENCY: WebCatalog stopped processing .HTML (IIS) (2003) [WebDNA] Need to convert unix date? (2009) [showif]/[hideif] question (1997) Proposed FormVariables hierarchy (2000) WebCat2 beta 11 - new prefs ... (1997) iis 4.0 (1997) quitting (1997) sort problems....bug or brain fart? (1997) Country & Ship-to address & other fields ? (1997)