Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-29 Thread John VanHorn

what you can do is have a script or remoting method that you can call that
will generate a file name for you. you can then pass that string to the
upload script.

On 8/25/06, Serge Jespers [EMAIL PROTECTED] wrote:


Hey guys,

I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new
filename... Is this possible at all?

Thanks for your fast responses ;-)

Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
John Van Horn
[EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] File upload : getting Flash to know the new name

2006-08-29 Thread hank williams

The way that flash file upload works you really need to think about it
a little differently.

The way I do it is to send a command to the server *before* I do the
upload, and I create a record for the upload in my database. This new
ID comes back to flash, and when I do the upload, I add the id as a
parameter in my upload call. So when the upload begins the upload
function on the server side sees the ID of the file and associates it
with the file that is being uploaded. If the upload is not completed
successfuly within a certain amount of time I delete the ID.

This is a bit more work, but it is, as far as I know, the only way of
allowing flash to know what the file that it has uploaded is.

Regards
Hank

On 8/25/06, Serge Jespers [EMAIL PROTECTED] wrote:

Hey guys,

I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new
filename... Is this possible at all?

Thanks for your fast responses ;-)

Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] File upload : getting Flash to know the new name

2006-08-29 Thread Bernard Visscher
If you create a MD5 of the filename, why not create a MD5 within flash of
the original name.
MD5 classes can be found, here is one:
http://www.meychi.com/archive/31.php
 

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Namens 
 Rich Rodecker
 Verzonden: zaterdag 26 augustus 2006 0:48
 Aan: Flashcoders mailing list
 Onderwerp: Re: [Flashcoders] File upload : getting Flash to 
 know the new name
 
 as far as I've seen there's no way to return any values from 
 a file upload.
 There was something I saw where you could return different 
 HTTP header codes back to flash to get some sort of control 
 over what was sent back, but even that still wouldnt send 
 back any data.
 
 jeroen's suggestion might work, or if you have a lot of data 
 maybe you can even save a text file to the server and read 
 that in after the onComplete.
 
 
 
 On 8/25/06, Serge Jespers [EMAIL PROTECTED] wrote:
 
  Yeah... I see where you're going with that... Can also read 
 the value 
  from my database but I thought it must have been possible 
 to have my 
  upload.php return that new name to Flash. That would have made more 
  sense, but I guess that's not possible then...?
 
  S
 
 
 
   Hi Serge,
  
   Maybe store the new name into the $_SESSION and request 
 it when the 
   onComplete event is dispatched?
   Or am I mis-understanding the situation?
  
   Greets,
   Jeroen
  
   Serge Jespers wrote:
   Hey guys,
  
   I'm doing a fileUpload in this project and in my PHP script, I 
   rename the file (make an MD5 from it).
   I was just wondering how I can get Flash to understand this new 
   filename... Is this possible at all?
  
   Thanks for your fast responses ;-)
  
   Serge
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software Premier Authorized Adobe 
   Consulting and Training http://www.figleaf.com 
   http://training.figleaf.com
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training 
   http://www.figleaf.com http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-25 Thread Jeroen Beckers
Hi Serge,

Maybe store the new name into the $_SESSION and request it when the
onComplete event is dispatched?
Or am I mis-understanding the situation?

Greets,
Jeroen

Serge Jespers wrote:
 Hey guys,

 I'm doing a fileUpload in this project and in my PHP script, I rename
 the file (make an MD5 from it).
 I was just wondering how I can get Flash to understand this new
 filename... Is this possible at all?

 Thanks for your fast responses ;-)

 Serge
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-25 Thread Serge Jespers
Yeah... I see where you're going with that... Can also read the value  
from my database but I thought it must have been possible to have my  
upload.php return that new name to Flash. That would have made more  
sense, but I guess that's not possible then...?


S




Hi Serge,

Maybe store the new name into the $_SESSION and request it when the
onComplete event is dispatched?
Or am I mis-understanding the situation?

Greets,
Jeroen

Serge Jespers wrote:

Hey guys,

I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new
filename... Is this possible at all?

Thanks for your fast responses ;-)

Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-25 Thread Rich Rodecker

as far as I've seen there's no way to return any values from a file upload.
There was something I saw where you could return different HTTP header codes
back to flash to get some sort of control over what was sent back, but even
that still wouldnt send back any data.

jeroen's suggestion might work, or if you have a lot of data maybe you can
even save a text file to the server and read that in after the onComplete.



On 8/25/06, Serge Jespers [EMAIL PROTECTED] wrote:


Yeah... I see where you're going with that... Can also read the value
from my database but I thought it must have been possible to have my
upload.php return that new name to Flash. That would have made more
sense, but I guess that's not possible then...?

S



 Hi Serge,

 Maybe store the new name into the $_SESSION and request it when the
 onComplete event is dispatched?
 Or am I mis-understanding the situation?

 Greets,
 Jeroen

 Serge Jespers wrote:
 Hey guys,

 I'm doing a fileUpload in this project and in my PHP script, I rename
 the file (make an MD5 from it).
 I was just wondering how I can get Flash to understand this new
 filename... Is this possible at all?

 Thanks for your fast responses ;-)

 Serge
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com