Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Upload



Hey,

Is there any way I can use flash to upload things, such as a picture?

And if not, what can I use with a flash site to upload a pic?

Thanx.



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 08-20-2004, 01:40 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Upload Script (PHP) Call By FileReference.upload() Can't Read Cookie In NS Or FF
Finally I found the answers to my problem,

these are comment posted on Adobe.com

Hope there is a better solution from Adobe.


Quote:




When swf calling FileReference.upload(handlerURL) method, the handler (which is php server script) can't see session cookies

Steps to Reproduce:
1. page1> setcookie(cookiename,value)
2. page2 swf> FileReference.upload(handlerURL)
3. handlerURL (serverscript)> getcookie(cookiename) return null





Quote:




I CONFIRM THE SESSION COOKIE NOT BEEING SENT WITH THE FILE-UPLOAD POST REQUEST IN FIREFOX 1.5 (NOT TESTED WITH 1.0.X).

THE MULTIPLE FILE UPLOAD FLASH COMPONENT IS USELLES UNTIL THIS BUG IS FIXED BECAUSE WE NEED A SESSION ON THE SERVER SIDE.





Quote:




UPLOAD SESSION COOKIE BUG SOLUTION:
THIS IS HOW TO BYPASS THE BUG ON FIREFOX AND SAFARI WHERE THE SESSION COOKIE IS (UNFORTUNATELY) NOT SENT BY THE FLASH PLAYER.

- IN THE HTML PAGE CREATE A JAVASCRIPT FUNCTION GETCOOKIE() THAT RETURNS THE SESSION COOKIE LOCATED IN 'DOCUMENT.COOKIE' , FOR INSTANCE IF YOU ARE USING PHP IT SHOULD BE NAMED 'PHPSESSID' BY DEFAULT.

- CALL THIS FUNCTION FROM FLASH USING THE EXTERNAL INTERFACE:
VAR COOKIE = STRING(EXTERNALINTERFACE.CALL("GETCOOKIE"));

- APPEND THE COOKIE TO YOUR UPLOAD URL:
.UPLOAD( "/UPLOAD.PHP?"+COOKIE)

VOILA.

ATTENTION:
- DON'T REGENERATE THE COOKIE DURING A SERVER CALL FROM FLASH, BECAUSE THE JAVASCRIPT WILL RETURN ONLY THE COOKIE FROM THE HTML PAGE HOLDING THE SWF.
- UNFORTUNATELY THIS DOESN'T WORK ON OPERA, BECAUSE THE EXTERNAL INTERFACE DOES NOT SUPPORT IT.
- AND CLEAR YOUR COOKIES BEFORE TESTING OF COURSE...

HOPE THIS HELPS...

FRANK.





Quote:




JUST ANOTHER CONFIRMATION: FILE UPLOAD PLUS SESSION COOKIES FAILS ON MAC WITH FIREFOX AND SAFARI, FLASH VERSIONS 8,0,27,0 AND 9,0,20,0. THE FILE GETS UPLOADED JUST FINE BUT THE COOKIES DO NOT GET SET IN THE HTTP REQUEST HEADER.

THIS TYPE OF BUG MAKES ME RECONSIDER POSSIBLY USING FLEX FOR APPLICATION DEPLOYMENT AND REVERT TO JAVASCRIPT + HTML OR JAVA.




more to read:

http://www.visible-form.com/blog/fla...ssion-cookies/

http://robrosenbaum.com/flash/using-...h-php-symfony/

Hope these comments help and save you some time when it happens to you.

Upload Form...upload .jpg From File System Into Flash
anybody have a clue how to do this and then email it to someone?

many, many thanks!
~fitchic77

Can We Upload Movieclip To Some Server Using Filereference.upload() Method?
hi to all

can we upload movieclip to some server using filereference.upload() method?

i know filereference upload files that only resides on localdisk and that we select using browse methods but is it possible that we convert movieclip which contains single image to filereference object so that we can upload it using filereference.upload() method?


thanks
mjanjua

Upload Page ...user Can Upload An Image
Im trying to figure out how I can create a page as described.

I want the customer to be able to go to blbla.html and click browse where appropriate and select the image that he/she wants to upload to the server.
How can I accomplish this in Flash, PHP, or straight HTML. I have a few ideas but never really dealt with someone having that kind of access to a server.

Any help would be great! I would prefer to do this in Flash for usability purposes. thanks!

Bug In FileReference: Upload->cancel->upload Not Possible
Hi,

i have written an uploader flash to upload multiple files one after another to a server.

I want to be able to cancel the uploading of a list of filerefences and continue later.

But when i cancel an ongoing upload it is not possible to upload that filereference-object again.
During the second call of upload (after a cancel before) the progress-events are still fired, but not the complete/httperror events. So effectively the upload keeps hanging at the previously canceled filereference.

I tried with Flash 8 and Flash CS3 - with both it was the same problem.
Can anyone confirm this?

Best regards,
Thomas

Upload-script Doesn't Upload
I'm trying to make a button which can upload multiple files in Flash.
This is my code so far:
AS3: http://pastie.org/320443
PHP: http://pastie.org/320444

The problem is that the console in Flash does say that the files are uploaded, but they are not.
I've tried to replace the PHP to just echo "test"; and Flash still says it is uploaded.

So what is wrong with the script and why does Flash says that files are uploaded when they aren't?

Can't Upload, I'm About To Cry - Please Help
My brother got me this great program and I made a real nice swi file. I exported to html and swf then tried to upload it to my web site but it would not upload the swf file.

I am using Yahoo geocities webbuilder - it took the html but not the swf. I have seached the forums up to 4 pages back in 3 forums but not found what I need. Yahoo will only take some file extensions.

Also, if I need to resize the whole movie so it can be seen whole without scrolling in the window - is there a way to resize everything easily having to redo certain effects due to the fact that they then dont move outside the movie since parameters have changed?

Thanks for any help!!!

Upload
does anyone know a better way of uploading a file to the site. if there are a way that is....can you make a file and put eveything in the file and upload that file(guessing) the way i do it is upload everything i save as png sequen,
maybe i don't know what i'm talking about....any suggestion is helpful

Upload
Hey I just made a kind of cruddy banner for an HTML website but the place won't let me upload .SWI files. So I am wondering were does everybody is uploading these banners. (The only other thing I want to do with it is to HotLink so I can put them on these fourms)

Thanks,
Dave

Upload
Hi there, hope someone here can help!

Can someone give me the correct code for the 'upload' action in MX, I'm trying to load a .swf file into the main timeline, the .swf file is in the same directory folder as the main timeline .swf file.

In addition, can a .swf file be uploaded into a movie clip, is the code the same?

Grateful for any expert help out there...

Kind regards,
DbyD

Upload HELP PLEASE
I have been trying to upload my flash file to my web-site but when it is done uploading and i go to my site the page is completly blank. I have absolutly no idea what could be the problem. Please someone help me. the site is www.ritdesigns.com. Maybe it will be obvious in the (view source) but i have idea how to tell.. PLEASE HELP!!!

Upload HELP
Hi my helper!
I uploaded my "index.html" and "movie.swf" in geocities and it works fine. But when i tried to upload it to a commercial hosting site, only the HTML uploaded, the .swf didnt.

WHY OH WHY!!

help....///

KC

Cant Get It To Upload
RRRR

I am using CoffeeCup to Create a movie. I need to upload it to my site Please help.
It asking me the
name of my server profile (I have no Idea what this is)and directory to upload files.

How To Upload
how do i upload a flash movie as an html page?

Upload
hey can anyone help me? what i want to do is have a flash movie that that browser's can upload files(zip) to a folder in the website server. i like to have a button that you could browse that hard drive of the visiter and then have a button that say upload files...

Upload
Hello, I am currently using a perl script that allows me to upload files from the pc to the web site. I was just wondering if it is possible to call the window to search for the file from flash? of if it can only be done through the form.

Thanks,
~Steve~

FPS Changes After Upload
Hi,

I've made some flash for a site, the FPS is 30.
I have put the flash into the HTML code and uploaded it.
But when i watch the movie online, the FPS seems to be lower, and the flash animation is much slower..

Does anyone recognize this problem?
How can i fix this?

Upload To Web
hi sry to bother you's

its my first time trying to upload to the web, im using angelfire, do i just up load the .swf file and the .html file it created and thats it, now its on the web? do i have to delete there index.html page or leave it?

thanks for your help

kermitfrog33

UplOAd Help....
Hii I Have Made Lets say a kind of MP3 Player
burt i need a small hjelp couse i need a smal problem
as i made that mp3 player now i want the users of that winamop made with flash 2 upload thair songs from thair pc 2 that flash amde winampo can annyone send me anny example of it or just tel me hopw can i make a browser or uploader on that mp3 player ?

[MX] Can't Upload
I'm new to making flash animations, and I've just made a little one with a loader bar, a couple of buttons and some sound as well as the animation, but I can't seem to upload it properly.

I'm using freewebs, in the HTML mode. I uploaded the .swf file and the .html file and editted the .html to include the links to the .swf, but it keeps just getting caught on my loader bar thing and doesn't actually load. Whenever I play the animation when I open the .swf or .html file on my computer it works, but it doesn't when I upload it.

Any reason why its doing this?

[cs3] Upload Without Ftp
Hi again. I was wondering if there's a way to have files uploaded but without having to use ftp programms, just actionscript. Does the fileReference command have to do anything with it?

Upload Using ASP
Has anyone used ASP.Net to upload files to a server and a confirmation from the server that it is completed ?

Would like to keep this self contained in flash.

TY in advance.

Mike

Ftp Upload
hi, i made a web based ftp site for webmasters to upload their files to server. there is a option for flash upload system, but unable to edit the flash interface. can anyone give me any idea how to edit the flash interface and make it more attractive? Web Based Ftp

>> Upload
Good morning,

I meet a problem with flash and I m surprise : the upload with flash doesnt work in this os : X.5

Do you mmet the same problem ?

I pick this link to make you see (not my site) :
http://jeanphiblog.media-box.net/upload_process/upload_test.html

FMS Upload
Very basic question. I have FMS working okj in my PC locally. Can/should/may I upload FMS to my website to be able to stream videos? can a server be uploaded to a server??

Ftp Upload In As3
I have this code to connect to my ftp and show in the output window that it succeeded. How would I do to actually select a file from my computer and then upload it to the ftp?







Attach Code

var s:Socket = new Socket("ftp.mydomain.com",21);
var ftp_response:String;

s.addEventListener(ProgressEvent.SOCKET_DATA, receiveReply);
s.addEventListener(IOErrorEvent.IO_ERROR, showError);

s.writeUTFBytes("USER user
");
s.writeUTFBytes("PASS password
");
s.writeUTFBytes("CWD /directory
");
s.writeUTFBytes("PWD
");
s.writeUTFBytes("PASV
");
s.writeUTFBytes("LIST
");
s.flush();

function receiveReply(e:ProgressEvent):void{
ftp_response = s.readUTFBytes(s.bytesAvailable);
trace(ftp_response);
}
function showError(e:IOErrorEvent):void{
trace(e);
}

























Edited: 01/18/2009 at 09:06:00 AM by lammspillning

Upload And Mac
Hi
Ive made a upload function that allowa uploads of .doc, .txt, .pdf and .xml

It works on windows but I cant make it work for Mac because I got no idea what the proper Mac extensions should be called


Code:
fileRef.browse([{description:"Documents", extension:"*.doc;*.txt;*.pdf;*.xml", macType:"doc;pdf"}]);

Upload With As3
i followed the tut at http://www.kirupa.com/developer/flas...erence_pg1.htm
and wanted to make an as3 version from this. has anyone done this?
Can anyone help me, give me links where i can find some examples, or tutorials?

thanks,

Do I Have To Upload .fla With .swf?
I'm having trouble with my embedded flash movies. I've uploaded both the swf's and the fla's to my server in the same directory as my html file which I used Dreamweaver to place the movies. What am I doing wrong? Here is the address for anyone who may have the time to help.

http://www.champlaincapital.com/flash

Upload
Hey,

Is there any way I can use flash to upload things, such as a picture?

And if not, what can I use with a flash site to upload a pic?

Thanx.

Upload With FTP
I've tried to upload my webpages, but I cannot view them. I don't know what I did wrong. After I configure all the information on the site definition window, I also test it, and the connection was fine. But when I open my webpage to check it, my page wasn't there.

www.paperorigin.com

Above is the my site that I'm working on.

Thanks,

Uma

Image Upload
Hi,

I'm looking for a way our users/members can upload their gif, jpeg image so it may appear in a specific area in our Flash site. Image to be viewed by other members with access to that portion of site. Would this be possible?

Thanks

How To Upload Txt-files
Hi,

I was wondering if you could help me, I want to upload a txt-file in my .swf, and show the contents

stop ();
loadVariables ("file:///c:/windows/desktop/test.txt", tekst);
test = tekst;

I tried this as actionscript given to the frame, but nothing happens.. Why??

thx

Upload Script
Anyone know how to have a upload action on a button so that users can upload files from their HD and attach it to a form?

i.e.: upload a resume, RFP etc..

Upload/download Mp3's
this is yet another unrelated flash question from my good self, but since there are some nice helpfull peeps in this community i thought i'd chance my luck.
I want to upload some mp3's to my site to be available for download. I havnt got a clue!!
help?

Can I Upload My First Work?
i am really a new user in flash and i need to hear your comments i only know the basics in flash ( i am using mx)
so i have just completed my first work...
if i can upload my .swf file here for you to see tell me how please

UPload Images From MX
Was wondering if any clever people have figured out a way to create a file browser button within flash. I have an HTML page i created with form elements - mostly file browse elements. The form submits to a cgi on my server for uploading. I htought wiht the new components I could handle this form data and create a little ftp engine wihtin my new website--but so far no such luck. Add the fact I'm not really MR ACTIONSCRIPT ----so I turn to the experts.

Here is an example of the form itself:

http://www.jonathandapra.com/browse/another.htm this is what I am trying to create. ANy ideas or help for FLash MX would be appreciated.

Upload To Server
I'm trying to build my flash site so that it enables a user to upload files to a folder on my server. Idealy, this folder would be password protected. Anybody know where to start here?
Best Regards,
KQ

Upload Field ?
hi friends !!

is there aneway that i can make a upload field in flashMX ???

i wana make a form in flash in which i also wana give the user an option to upload his image or any file to my server... but i cant find a upload field in flashMX !!

waiting for a nice solution from experts !! :-)

Upload Component
Dear All,

Do you know where I can find an upload component to use in a Flash page? Is it possible to have an upload component done in Flash?

Thanks for your help

Upload Component
Dear All,

Do you know where I can find an upload component to use in a Flash page? Is it possible to have an upload component done in Flash?

Thanks for your help

Problem Upload
I've this problem: I'm trying to create a upload system that use flash MX by client-side e ASP by server-side.

How to comunicate to the asp page the correct data to do the upload? I wish to comunicate this information, for example:

-----------------------------7d01ecf406a6
Content-Disposition: form-data; name="myfile";
filename="C:InetpubwwwrootUploadpic.gif"
Content-Type: image/gif

(binary content)
-----------------------------------------------------------
(that are datas that an input file control comunicate to asp page onSubmit).

For this system I used LoadVars object and, on upload, I specified LoadVar.ContentType = "multipart/form-data"; but it is no enough.

File Upload
Is it possible to upload a file using a Flash form like <input type=file...> in HTML? I'm using CFMX and FlashMX to do some Flash Remoting stuff and need to be able to give my users the ability to upload a file. I have the CFC built and it works fine with an HTML form.

CFDaddy

File To Upload To Big
hi,

the file was to big to upload; chech herre http://olenz.nl/chatbox/
file name vuur.zip.

No i did not call it up in a mc but with the loadmovienumber

Hope you can find something. when you need the php/txt files for the chatbox they are also there.

Music / Upload
i recently learned how to load swf's that contained music.
The problem is the swf is 2.5mb and when i want to upload on to the server they only accept 500kb, uploads, is there any servers that allow bigger uploads ? i am using a free one at the moment

Plugin Upload...
Sorry, I guess that this question has been posted already hundred times...
But there's still one thing I don't understand.

Some time ago...I created a site with a Flash5 movie...the problem was, that sometimes the movie was displayed upside down.

Yesterday I changed the code in the movie in...

"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0"

So I suppose that the plugin would be upgraded...but that isn't the case...why doesn't it work?

Sorry for this (probably very dumb) question

Greetz,

Demax

Upload File
is there a way to have a button in a flash movie to upload a file. it would have to open the local dir information. can this be done?

Upload Jpeg?
I want visitors of my site to be able to upload an image file (jpeg) to my server. Is this possible? Can you upload files to a server with Flash? Or do I have to use HTML to do this?

Thanks

Upload File
Is it possible to create a button that would show the files on pc to choose the file to upload, or to send the path to another script that will upload the file?

Copyright © 2005-08 www.BigResource.com, All rights reserved