[Flashcoders] Filereference.upload

2005-12-06 Thread rishi
Hi

 

Is there any Limit to size of file with uploading file greater than 10
mb. Although with php/asp scripts I have uploaded more than 50 mb-100 mb
files to my server, but with filereference.uploadmethod, I am just able
to upload files less than 10 mb of size. Any hints?

 

Regards

Rishi

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FileReference.upload -> "Filedata"

2005-11-03 Thread bryan.rice
Every example of the Flash 8 file Upload feature uses the variable  
name "Filedata" in the server side script when referring to the  
file.  Is this *always* the name that Flash passes to the server, or  
can this be specified somewhere?  I can only find examples, but not  
documentation stating this one way or another - can some one point me  
to some documentation (or Central documentation that is similar) ?


[To illustrate, in HTML you would create an file input control and  
specify the name: .  In your  
script you would then refer to FileToUpload when manipulating the file.]


blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Filereference.upload

2005-12-07 Thread Mike Duguid
If you read flashes built in help files
ActionScript classes > FileReference > upload

it tells you 100mb



On 12/5/05, rishi <[EMAIL PROTECTED]> wrote:
> Hi
>
>
>
> Is there any Limit to size of file with uploading file greater than 10
> mb. Although with php/asp scripts I have uploaded more than 50 mb-100 mb
> files to my server, but with filereference.uploadmethod, I am just able
> to upload files less than 10 mb of size. Any hints?
>
>
>
> Regards
>
> Rishi
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-03 Thread David Rorex
On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
> Every example of the Flash 8 file Upload feature uses the variable
> name "Filedata" in the server side script when referring to the
> file.  Is this *always* the name that Flash passes to the server, or
> can this be specified somewhere?  I can only find examples, but not
> documentation stating this one way or another - can some one point me
> to some documentation (or Central documentation that is similar) ?
>
> [To illustrate, in HTML you would create an file input control and
> specify the name: .  In your
> script you would then refer to FileToUpload when manipulating the file.]

I don't think you can change the 'Filedata' value, at least I haven't
seen any way to. Is there a reason you need to change it?

-David R
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-03 Thread bryan.rice


On Nov 3, 2005, at 9:19 PM, David Rorex wrote:


Is there a reason you need to change it?



No - just curious.  Thanx.

blue skies,
bryan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-15 Thread M Daggett
Do you know if you can append extra parameters into the FileData?

For example, I would like to allow users to describe their picture (name,
title) but I don't have anyway to put that into the upload. I guess if worse
came to worse I could add it to the URL but that is far from elegant.

Additionally, it appears that you have to do the same thing with the session
id if you would like to maintain state with the appserver.

Thanks,
Mark


On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
>
>
> On Nov 3, 2005, at 9:19 PM, David Rorex wrote:
>
> > Is there a reason you need to change it?
>
>
> No - just curious. Thanx.
>
> blue skies,
> bryan
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--

I am Mark Daggett and I approve this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-16 Thread Ryan Matsikas
you can't append anything to the "file" data but you can append to the url,
and then fetch it in yer upload script.. it will be sent as a GET..

Also note with sessions.. they arent properly created in firefox and
safari.. so don't count on that.

Cheers,
Ryan

On 11/15/05, M Daggett <[EMAIL PROTECTED]> wrote:
>
> Do you know if you can append extra parameters into the FileData?
>
> For example, I would like to allow users to describe their picture (name,
> title) but I don't have anyway to put that into the upload. I guess if
> worse
> came to worse I could add it to the URL but that is far from elegant.
>
> Additionally, it appears that you have to do the same thing with the
> session
> id if you would like to maintain state with the appserver.
>
> Thanks,
> Mark
>
>
> On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Nov 3, 2005, at 9:19 PM, David Rorex wrote:
> >
> > > Is there a reason you need to change it?
> >
> >
> > No - just curious. Thanx.
> >
> > blue skies,
> > bryan
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> 
> I am Mark Daggett and I approve this message.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-16 Thread M Daggett
I was able to get it working with the url string like you mentioned...
basically I store the session in the DB and generate a key that will expire
after some time. Then the key is appended to the URL. When the url is posted
the session is retrieved etc. etc. etc.

One thing that is annoying though is that you can't get the correct
content_type from the upload. Typically with a file upload you know what
type of file it is images/jpeg for example. However flash just defaults to
application/octecstream. That is really annoying for trying to parse out
good and bad file types.

Mark

On 11/16/05, Ryan Matsikas <[EMAIL PROTECTED]> wrote:
>
> you can't append anything to the "file" data but you can append to the
> url,
> and then fetch it in yer upload script.. it will be sent as a GET..
>
> Also note with sessions.. they arent properly created in firefox and
> safari.. so don't count on that.
>
> Cheers,
> Ryan
>
> On 11/15/05, M Daggett <[EMAIL PROTECTED]> wrote:
> >
> > Do you know if you can append extra parameters into the FileData?
> >
> > For example, I would like to allow users to describe their picture
> (name,
> > title) but I don't have anyway to put that into the upload. I guess if
> > worse
> > came to worse I could add it to the URL but that is far from elegant.
> >
> > Additionally, it appears that you have to do the same thing with the
> > session
> > id if you would like to maintain state with the appserver.
> >
> > Thanks,
> > Mark
> >
> >
> > On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > On Nov 3, 2005, at 9:19 PM, David Rorex wrote:
> > >
> > > > Is there a reason you need to change it?
> > >
> > >
> > > No - just curious. Thanx.
> > >
> > > blue skies,
> > > bryan
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> >
> >
> >
> > --
> > 
> > I am Mark Daggett and I approve this message.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--

I am Mark Daggett and I approve this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-16 Thread David Rorex
For getting the file type, if you are using php, see:
http://us2.php.net/manual/en/function.mime-content-type.php

-David R

On 11/16/05, M Daggett <[EMAIL PROTECTED]> wrote:
> I was able to get it working with the url string like you mentioned...
> basically I store the session in the DB and generate a key that will expire
> after some time. Then the key is appended to the URL. When the url is posted
> the session is retrieved etc. etc. etc.
>
> One thing that is annoying though is that you can't get the correct
> content_type from the upload. Typically with a file upload you know what
> type of file it is images/jpeg for example. However flash just defaults to
> application/octecstream. That is really annoying for trying to parse out
> good and bad file types.
>
> Mark
>
> On 11/16/05, Ryan Matsikas <[EMAIL PROTECTED]> wrote:
> >
> > you can't append anything to the "file" data but you can append to the
> > url,
> > and then fetch it in yer upload script.. it will be sent as a GET..
> >
> > Also note with sessions.. they arent properly created in firefox and
> > safari.. so don't count on that.
> >
> > Cheers,
> > Ryan
> >
> > On 11/15/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > >
> > > Do you know if you can append extra parameters into the FileData?
> > >
> > > For example, I would like to allow users to describe their picture
> > (name,
> > > title) but I don't have anyway to put that into the upload. I guess if
> > > worse
> > > came to worse I could add it to the URL but that is far from elegant.
> > >
> > > Additionally, it appears that you have to do the same thing with the
> > > session
> > > id if you would like to maintain state with the appserver.
> > >
> > > Thanks,
> > > Mark
> > >
> > >
> > > On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > On Nov 3, 2005, at 9:19 PM, David Rorex wrote:
> > > >
> > > > > Is there a reason you need to change it?
> > > >
> > > >
> > > > No - just curious. Thanx.
> > > >
> > > > blue skies,
> > > > bryan
> > > > ___
> > > > Flashcoders mailing list
> > > > Flashcoders@chattyfig.figleaf.com
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > >
> > >
> > >
> > > --
> > > 
> > > I am Mark Daggett and I approve this message.
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> 
> I am Mark Daggett and I approve this message.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-16 Thread M Daggett
Hey David,
I am using Ruby. Thank you for the link though, maybe there is something
that I can do that is analogous in Ruby.

>From MACR's own docs it appears they are sending the post as:
application/octet-stream.

Content-Type: multipart/form-data; boundary=AaB03x
 --AaB03x
 Content-Disposition: form-data; name="Filedata"; filename="example.jpg"
 Content-Type: application/octet-stream
 ... contents of example.jpg ...
 --AaB03x--


I am not an expert on File posts so it could be the default way that files
are sent in the first place.



On 11/16/05, David Rorex <[EMAIL PROTECTED]> wrote:
>
> For getting the file type, if you are using php, see:
> http://us2.php.net/manual/en/function.mime-content-type.php
>
> -David R
>
> On 11/16/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > I was able to get it working with the url string like you mentioned...
> > basically I store the session in the DB and generate a key that will
> expire
> > after some time. Then the key is appended to the URL. When the url is
> posted
> > the session is retrieved etc. etc. etc.
> >
> > One thing that is annoying though is that you can't get the correct
> > content_type from the upload. Typically with a file upload you know what
> > type of file it is images/jpeg for example. However flash just defaults
> to
> > application/octecstream. That is really annoying for trying to parse out
> > good and bad file types.
> >
> > Mark
> >
> > On 11/16/05, Ryan Matsikas <[EMAIL PROTECTED]> wrote:
> > >
> > > you can't append anything to the "file" data but you can append to the
> > > url,
> > > and then fetch it in yer upload script.. it will be sent as a GET..
> > >
> > > Also note with sessions.. they arent properly created in firefox and
> > > safari.. so don't count on that.
> > >
> > > Cheers,
> > > Ryan
> > >
> > > On 11/15/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Do you know if you can append extra parameters into the FileData?
> > > >
> > > > For example, I would like to allow users to describe their picture
> > > (name,
> > > > title) but I don't have anyway to put that into the upload. I guess
> if
> > > > worse
> > > > came to worse I could add it to the URL but that is far from
> elegant.
> > > >
> > > > Additionally, it appears that you have to do the same thing with the
> > > > session
> > > > id if you would like to maintain state with the appserver.
> > > >
> > > > Thanks,
> > > > Mark
> > > >
> > > >
> > > > On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > > On Nov 3, 2005, at 9:19 PM, David Rorex wrote:
> > > > >
> > > > > > Is there a reason you need to change it?
> > > > >
> > > > >
> > > > > No - just curious. Thanx.
> > > > >
> > > > > blue skies,
> > > > > bryan
> > > > > ___
> > > > > Flashcoders mailing list
> > > > > Flashcoders@chattyfig.figleaf.com
> > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > 
> > > > I am Mark Daggett and I approve this message.
> > > > ___
> > > > Flashcoders mailing list
> > > > Flashcoders@chattyfig.figleaf.com
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> >
> >
> >
> > --
> > 
> > I am Mark Daggett and I approve this message.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--

I am Mark Daggett and I approve this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-16 Thread JesterXL
Late to the thread, no clue if this helps:
http://www.collcoll.com/index.php/2005/11/15/more-on-flash-and-ruby-posting/

- Original Message - 
From: "M Daggett" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, November 16, 2005 6:18 PM
Subject: Re: [Flashcoders] FileReference.upload -> "Filedata"


Hey David,
I am using Ruby. Thank you for the link though, maybe there is something
that I can do that is analogous in Ruby.

>From MACR's own docs it appears they are sending the post as:
application/octet-stream.

Content-Type: multipart/form-data; boundary=AaB03x
 --AaB03x
 Content-Disposition: form-data; name="Filedata"; filename="example.jpg"
 Content-Type: application/octet-stream
 ... contents of example.jpg ...
 --AaB03x--


I am not an expert on File posts so it could be the default way that files
are sent in the first place.



On 11/16/05, David Rorex <[EMAIL PROTECTED]> wrote:
>
> For getting the file type, if you are using php, see:
> http://us2.php.net/manual/en/function.mime-content-type.php
>
> -David R
>
> On 11/16/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > I was able to get it working with the url string like you mentioned...
> > basically I store the session in the DB and generate a key that will
> expire
> > after some time. Then the key is appended to the URL. When the url is
> posted
> > the session is retrieved etc. etc. etc.
> >
> > One thing that is annoying though is that you can't get the correct
> > content_type from the upload. Typically with a file upload you know what
> > type of file it is images/jpeg for example. However flash just defaults
> to
> > application/octecstream. That is really annoying for trying to parse out
> > good and bad file types.
> >
> > Mark
> >
> > On 11/16/05, Ryan Matsikas <[EMAIL PROTECTED]> wrote:
> > >
> > > you can't append anything to the "file" data but you can append to the
> > > url,
> > > and then fetch it in yer upload script.. it will be sent as a GET..
> > >
> > > Also note with sessions.. they arent properly created in firefox and
> > > safari.. so don't count on that.
> > >
> > > Cheers,
> > > Ryan
> > >
> > > On 11/15/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Do you know if you can append extra parameters into the FileData?
> > > >
> > > > For example, I would like to allow users to describe their picture
> > > (name,
> > > > title) but I don't have anyway to put that into the upload. I guess
> if
> > > > worse
> > > > came to worse I could add it to the URL but that is far from
> elegant.
> > > >
> > > > Additionally, it appears that you have to do the same thing with the
> > > > session
> > > > id if you would like to maintain state with the appserver.
> > > >
> > > > Thanks,
> > > > Mark
> > > >
> > > >
> > > > On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > > On Nov 3, 2005, at 9:19 PM, David Rorex wrote:
> > > > >
> > > > > > Is there a reason you need to change it?
> > > > >
> > > > >
> > > > > No - just curious. Thanx.
> > > > >
> > > > > blue skies,
> > > > > bryan
> > > > > ___
> > > > > Flashcoders mailing list
> > > > > Flashcoders@chattyfig.figleaf.com
> > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > 
> > > > I am Mark Daggett and I approve this message.
> > > > ___
> > > > Flashcoders mailing list
> > > > Flashcoders@chattyfig.figleaf.com
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> >
> >
> >
> > --
> > 
> > I am Mark Daggett and I approve this message.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--

I am Mark Daggett and I approve this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-16 Thread M Daggett
Ha,
That is my blog :-)


On 11/16/05, JesterXL <[EMAIL PROTECTED]> wrote:
>
> Late to the thread, no clue if this helps:
>
> http://www.collcoll.com/index.php/2005/11/15/more-on-flash-and-ruby-posting/
>
> - Original Message -
> From: "M Daggett" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Wednesday, November 16, 2005 6:18 PM
> Subject: Re: [Flashcoders] FileReference.upload -> "Filedata"
>
>
> Hey David,
> I am using Ruby. Thank you for the link though, maybe there is something
> that I can do that is analogous in Ruby.
>
> >From MACR's own docs it appears they are sending the post as:
> application/octet-stream.
>
> Content-Type: multipart/form-data; boundary=AaB03x
> --AaB03x
> Content-Disposition: form-data; name="Filedata"; filename="example.jpg"
> Content-Type: application/octet-stream
> ... contents of example.jpg ...
> --AaB03x--
>
>
> I am not an expert on File posts so it could be the default way that files
> are sent in the first place.
>
>
>
> On 11/16/05, David Rorex <[EMAIL PROTECTED]> wrote:
> >
> > For getting the file type, if you are using php, see:
> > http://us2.php.net/manual/en/function.mime-content-type.php
> >
> > -David R
> >
> > On 11/16/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > > I was able to get it working with the url string like you mentioned...
> > > basically I store the session in the DB and generate a key that will
> > expire
> > > after some time. Then the key is appended to the URL. When the url is
> > posted
> > > the session is retrieved etc. etc. etc.
> > >
> > > One thing that is annoying though is that you can't get the correct
> > > content_type from the upload. Typically with a file upload you know
> what
> > > type of file it is images/jpeg for example. However flash just
> defaults
> > to
> > > application/octecstream. That is really annoying for trying to parse
> out
> > > good and bad file types.
> > >
> > > Mark
> > >
> > > On 11/16/05, Ryan Matsikas <[EMAIL PROTECTED]> wrote:
> > > >
> > > > you can't append anything to the "file" data but you can append to
> the
> > > > url,
> > > > and then fetch it in yer upload script.. it will be sent as a GET..
> > > >
> > > > Also note with sessions.. they arent properly created in firefox and
> > > > safari.. so don't count on that.
> > > >
> > > > Cheers,
> > > > Ryan
> > > >
> > > > On 11/15/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Do you know if you can append extra parameters into the FileData?
> > > > >
> > > > > For example, I would like to allow users to describe their picture
> > > > (name,
> > > > > title) but I don't have anyway to put that into the upload. I
> guess
> > if
> > > > > worse
> > > > > came to worse I could add it to the URL but that is far from
> > elegant.
> > > > >
> > > > > Additionally, it appears that you have to do the same thing with
> the
> > > > > session
> > > > > id if you would like to maintain state with the appserver.
> > > > >
> > > > > Thanks,
> > > > > Mark
> > > > >
> > > > >
> > > > > On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >
> > > > > > On Nov 3, 2005, at 9:19 PM, David Rorex wrote:
> > > > > >
> > > > > > > Is there a reason you need to change it?
> > > > > >
> > > > > >
> > > > > > No - just curious. Thanx.
> > > > > >
> > > > > > blue skies,
> > > > > > bryan
> > > > > > ___
> > > > > > Flashcoders mailing list
> > > > > > Flashcoders@chattyfig.figleaf.com
> > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> 
> > > > > I am Mark Daggett and I approve this message.
&

Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-16 Thread JesterXL
Ah dammit! BWAHAHAH, oh well.. saw your post on OSFlash that looked happy, 
and I'm like, hell yeah, I'll tell that dude on Flashcoders, and he'll be 
happy!

- Original Message - 
From: "M Daggett" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, November 16, 2005 9:06 PM
Subject: Re: [Flashcoders] FileReference.upload -> "Filedata"


Ha,
That is my blog :-)


On 11/16/05, JesterXL <[EMAIL PROTECTED]> wrote:
>
> Late to the thread, no clue if this helps:
>
> http://www.collcoll.com/index.php/2005/11/15/more-on-flash-and-ruby-posting/
>
> - Original Message -
> From: "M Daggett" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Wednesday, November 16, 2005 6:18 PM
> Subject: Re: [Flashcoders] FileReference.upload -> "Filedata"
>
>
> Hey David,
> I am using Ruby. Thank you for the link though, maybe there is something
> that I can do that is analogous in Ruby.
>
> >From MACR's own docs it appears they are sending the post as:
> application/octet-stream.
>
> Content-Type: multipart/form-data; boundary=AaB03x
> --AaB03x
> Content-Disposition: form-data; name="Filedata"; filename="example.jpg"
> Content-Type: application/octet-stream
> ... contents of example.jpg ...
> --AaB03x--
>
>
> I am not an expert on File posts so it could be the default way that files
> are sent in the first place.
>
>
>
> On 11/16/05, David Rorex <[EMAIL PROTECTED]> wrote:
> >
> > For getting the file type, if you are using php, see:
> > http://us2.php.net/manual/en/function.mime-content-type.php
> >
> > -David R
> >
> > On 11/16/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > > I was able to get it working with the url string like you mentioned...
> > > basically I store the session in the DB and generate a key that will
> > expire
> > > after some time. Then the key is appended to the URL. When the url is
> > posted
> > > the session is retrieved etc. etc. etc.
> > >
> > > One thing that is annoying though is that you can't get the correct
> > > content_type from the upload. Typically with a file upload you know
> what
> > > type of file it is images/jpeg for example. However flash just
> defaults
> > to
> > > application/octecstream. That is really annoying for trying to parse
> out
> > > good and bad file types.
> > >
> > > Mark
> > >
> > > On 11/16/05, Ryan Matsikas <[EMAIL PROTECTED]> wrote:
> > > >
> > > > you can't append anything to the "file" data but you can append to
> the
> > > > url,
> > > > and then fetch it in yer upload script.. it will be sent as a GET..
> > > >
> > > > Also note with sessions.. they arent properly created in firefox and
> > > > safari.. so don't count on that.
> > > >
> > > > Cheers,
> > > > Ryan
> > > >
> > > > On 11/15/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Do you know if you can append extra parameters into the FileData?
> > > > >
> > > > > For example, I would like to allow users to describe their picture
> > > > (name,
> > > > > title) but I don't have anyway to put that into the upload. I
> guess
> > if
> > > > > worse
> > > > > came to worse I could add it to the URL but that is far from
> > elegant.
> > > > >
> > > > > Additionally, it appears that you have to do the same thing with
> the
> > > > > session
> > > > > id if you would like to maintain state with the appserver.
> > > > >
> > > > > Thanks,
> > > > > Mark
> > > > >
> > > > >
> > > > > On 11/3/05, bryan.rice <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >
> > > > > > On Nov 3, 2005, at 9:19 PM, David Rorex wrote:
> > > > > >
> > > > > > > Is there a reason you need to change it?
> > > > > >
> > > > > >
> > > > > > No - just curious. Thanx.
> > > > > >
> > > > > > blue skies,
> > > > > > bryan
> > > > > > ___
> > > > > > Flashcoders mailing list
> > > > > > Flashcoders@cha

Re: [Flashcoders] FileReference.upload -> "Filedata"

2005-11-16 Thread M Daggett
Ha Ha,
Yeah I was putting the feelers out for sure. I have gotten most of my
questions answered, though the session bug is still well... bugging me. Once
I get all the code dialed in (and passing all the unit tests). I am going to
post it to the blog.


On 11/16/05, JesterXL <[EMAIL PROTECTED]> wrote:
>
> Ah dammit! BWAHAHAH, oh well.. saw your post on OSFlash that looked happy,
> and I'm like, hell yeah, I'll tell that dude on Flashcoders, and he'll be
> happy!
>
> - Original Message -
> From: "M Daggett" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Wednesday, November 16, 2005 9:06 PM
> Subject: Re: [Flashcoders] FileReference.upload -> "Filedata"
>
>
> Ha,
> That is my blog :-)
>
>
> On 11/16/05, JesterXL <[EMAIL PROTECTED]> wrote:
> >
> > Late to the thread, no clue if this helps:
> >
> >
> http://www.collcoll.com/index.php/2005/11/15/more-on-flash-and-ruby-posting/
> >
> > - Original Message -
> > From: "M Daggett" <[EMAIL PROTECTED]>
> > To: "Flashcoders mailing list" 
> > Sent: Wednesday, November 16, 2005 6:18 PM
> > Subject: Re: [Flashcoders] FileReference.upload -> "Filedata"
> >
> >
> > Hey David,
> > I am using Ruby. Thank you for the link though, maybe there is something
> > that I can do that is analogous in Ruby.
> >
> > >From MACR's own docs it appears they are sending the post as:
> > application/octet-stream.
> >
> > Content-Type: multipart/form-data; boundary=AaB03x
> > --AaB03x
> > Content-Disposition: form-data; name="Filedata"; filename="example.jpg"
> > Content-Type: application/octet-stream
> > ... contents of example.jpg ...
> > --AaB03x--
> >
> >
> > I am not an expert on File posts so it could be the default way that
> files
> > are sent in the first place.
> >
> >
> >
> > On 11/16/05, David Rorex <[EMAIL PROTECTED]> wrote:
> > >
> > > For getting the file type, if you are using php, see:
> > > http://us2.php.net/manual/en/function.mime-content-type.php
> > >
> > > -David R
> > >
> > > On 11/16/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > > > I was able to get it working with the url string like you
> mentioned...
> > > > basically I store the session in the DB and generate a key that will
> > > expire
> > > > after some time. Then the key is appended to the URL. When the url
> is
> > > posted
> > > > the session is retrieved etc. etc. etc.
> > > >
> > > > One thing that is annoying though is that you can't get the correct
> > > > content_type from the upload. Typically with a file upload you know
> > what
> > > > type of file it is images/jpeg for example. However flash just
> > defaults
> > > to
> > > > application/octecstream. That is really annoying for trying to parse
> > out
> > > > good and bad file types.
> > > >
> > > > Mark
> > > >
> > > > On 11/16/05, Ryan Matsikas <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > you can't append anything to the "file" data but you can append to
> > the
> > > > > url,
> > > > > and then fetch it in yer upload script.. it will be sent as a
> GET..
> > > > >
> > > > > Also note with sessions.. they arent properly created in firefox
> and
> > > > > safari.. so don't count on that.
> > > > >
> > > > > Cheers,
> > > > > Ryan
> > > > >
> > > > > On 11/15/05, M Daggett <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Do you know if you can append extra parameters into the
> FileData?
> > > > > >
> > > > > > For example, I would like to allow users to describe their
> picture
> > > > > (name,
> > > > > > title) but I don't have anyway to put that into the upload. I
> > guess
> > > if
> > > > > > worse
> > > > > > came to worse I could add it to the URL but that is far from
> > > elegant.
> > > > > >
> > > > > > Additionally, it appears that you have to do the same thing with
> > the
> > > > > > session
> > > > > > id if you would like to maintain state with the ap

[Flashcoders] FileReference.upload onComplete event fails on OSX

2006-08-04 Thread lists
hi

I have a flash 8 movie that upload jpegs to a server side script.  When hosted
on an NT server, with a php script that recieves the upload, the FileReference
onComplete event gets called correctly when the an image has completely
uploaded using FileReference.upload. This when movie is viewed in Flash Player
8, in IE and Firefox on Windows XP and on OSX.

When the same swf is uploaded to an Apache Tomcat/5.5.12 server, with a jsp
script to recieve the upload, then the problems start.  The upload works ok on
both PC and OSX, except that the onComplete event of the FileReference object
is never called on OSX.  It is essential to trap the onComplete event for the
site to continue with its functionality. (If the file takes long enough to
upload (more than a few fractions of a second) the the onProgress event is
called while its uploading on PC and OSX.)

Has anyone come across this problem or similar?

TIA
___
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] FileReference.upload - onHTTPError: 302 on Mac OS X

2006-07-19 Thread Aaron Buchanan
Hey all,

Does any know know why this might be happening? The 302 error seems to
trigger when I move the uploaded file, so is it happening too soon?

Thx!
Aaron 

RE:http://chattyfig.figleaf.com/pipermail/flashcoders/2006-March/162075.html

Hello everybody,

How is it going???
Don t want to take too much of your time.

I have a backend in Flash 8 which uploads a file using
the FileReference class and a PHP serverscript.
Everything is fine with a windows client.

Strangely with a Mac OS X client (Firefox, safari, IE)
the file is well uploaded but I get an onHTTPError
event with an error of 302 (URI problem).

I found a "workaround": knowing that the file is well
uploaded my onHTTPError event executes the same code
than the onComplete one but I would like to understand
why I get this problem.

Thanks 
Take care.

Nicolas



___
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] FileReference.upload onComplete event fails on OSX

2006-08-05 Thread John VanHorn

this has been discussed before.

http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/workaround_file_1.php

On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


hi

I have a flash 8 movie that upload jpegs to a server side script.  When
hosted
on an NT server, with a php script that recieves the upload, the
FileReference
onComplete event gets called correctly when the an image has completely
uploaded using FileReference.upload. This when movie is viewed in Flash
Player
8, in IE and Firefox on Windows XP and on OSX.

When the same swf is uploaded to an Apache Tomcat/5.5.12 server, with a
jsp
script to recieve the upload, then the problems start.  The upload works
ok on
both PC and OSX, except that the onComplete event of the FileReference
object
is never called on OSX.  It is essential to trap the onComplete event for
the
site to continue with its functionality. (If the file takes long enough to
upload (more than a few fractions of a second) the the onProgress event is
called while its uploading on PC and OSX.)

Has anyone come across this problem or similar?

TIA
___
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


[Flashcoders] FileReference.upload - onHTTPError: 302 on Mac OS X

2006-03-16 Thread Nicolas Tremeaud
Hello everybody,

How is it going???
Don t want to take too much of your time.

I have a backend in Flash 8 which uploads a file using
the FileReference class and a PHP serverscript.
Everything is fine with a windows client.

Strangely with a Mac OS X client (Firefox, safari, IE)
the file is well uploaded but I get an onHTTPError
event with an error of 302 (URI problem). 

I found a "workaround": knowing that the file is well
uploaded my onHTTPError event executes the same code
than the onComplete one but I would like to understand
why I get this problem. 

Thanks 
Take care.

Nicolas

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] FileReference.upload - onHTTPError: 302 on Mac OS X

2006-07-19 Thread Ben Smeets
Might be totally off topic, but we never know.

I remember having problems with Uploads in firefox e.g. What it did was
(per upload) send 2 requests to the server instead of 1. The first one
is an empty one and all it does is try to predict weither the upload
will fail or succeed. Maybe the script is trying to act on this first
(empty) request and therefore trying to move an non-existing file?
(thus, the 302?).

Ben 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Buchanan
Sent: woensdag 19 juli 2006 16:07
To: Flashcoders mailing list
Subject: [Flashcoders] FileReference.upload - onHTTPError: 302 on Mac OS
X

Hey all,

Does any know know why this might be happening? The 302 error seems to
trigger when I move the uploaded file, so is it happening too soon?

Thx!
Aaron 

RE:http://chattyfig.figleaf.com/pipermail/flashcoders/2006-March/162075.
html


Hello everybody,

How is it going???
Don t want to take too much of your time.

I have a backend in Flash 8 which uploads a file using the FileReference
class and a PHP serverscript.
Everything is fine with a windows client.

Strangely with a Mac OS X client (Firefox, safari, IE) the file is well
uploaded but I get an onHTTPError event with an error of 302 (URI
problem).

I found a "workaround": knowing that the file is well uploaded my
onHTTPError event executes the same code than the onComplete one but I
would like to understand why I get this problem.

Thanks
Take care.

Nicolas




___
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