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




Get Full File Path At Flash 8 Upload Tutorial At FlashDB



Hello, i have seen and download the files for this tutorial at Flash DB, explaining how to upload files via flash 8.The tutorial is at http://www.flash-db.com/Tutorials/upload/My question is: How can i get the full path fo the file i am uploading? Instead of having just my file name, i would like to have the full path.Something like : c:imagesmyFile.jpg or wherever the file i choose ..Any help please? This is getting me crazy....I get the info that this is a security violation, and i won´t be able to do that. Can anyone confirm this?



Adobe > ActionScript 1 and 2
Posted on: 04/25/2007 04:57:51 PM


View Complete Forum Thread with Replies

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

Please Help How To Get The Full File Path( The File Which Is In Local System) In Flash 8
Hi All,

It would be great if any one can help me about how to get the full file path( the file which is in local system) in flash 8.
i do not want to use any server side uploading or downloading....i just want to view the image in loader component when we select image from any location in the hard disk using browse dialog box.

here is my incomplete code ??? !!!

import flash.net.FileReference;
import mdm.FileSystem;
var lo:mx.controls.Loader;
var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {
_root.pa.text = file.name;
////////////////////////////

//////////////////

}
var fileRef:FileReference = new FileReference();
var bro:Button;
fileRef.addListener(listener);
_root.bro.onRelease = function(){
fileRef.browse([{description: "Images", extension: "*.jpg;*.gif;"}] );
};

It would be great if any one can help on this issue...

thanks
Jiby

Single File Upload, From File Path (f8)
[Don't know if this is the right place to post for flash 8 help, don't see anywhere else to right now]

I just got flash 8 and I have seen a lot of file upload examples, but most are for multiple files and I think all use the file-browse to get a file in flash. What I need to to is just give flash a local file path like "C:Some FolderA_File.zip" and have flash upload that. Is this possible? I'm kind of thinking with how flash 8 handles files its not, but I'm not sure.

Help With File Upload Tutorial
I followed the directions in the following tutorial and was able to get it to work http://www.kirupa.com/developer/flash8/uploading_fileReference_pg1.htm. The only problem I'm having though is trying to upload a file greater than 10MB. Anything under 10MB uploads perfectly, anything over fails for some reason. The max upload file size is set to 20MB in my php.ini file so I can't think of any reason why this would be failing. I'm no PHP/developer guy so any ideas would be awesome.

My PHP looks nearly identical to the script offered in the tute.

PHP Code:



<?php    if ($_FILES['Filedata']['name']) {        move_uploaded_file($_FILES['Filedata']['tmp_name'], 'uploads/' . basename($_FILES['Filedata']['name']));    }?>

File Upload Tutorial
Hi all
I've been looking for a tutorial on how to upload a file to a folder and i came across this one http://www.kirupa.com/developer/flas...erence_pg1.htm
In the tutorial the author mentions an upload.php script that he will discuss later but I wasn't able to find anything about it
can someone point me to where this php file is? or help me find one that would do the job?
I dont have particular needs I just need the user to be able to upload an image on the server on a folder i specify...
let me know
thank you

I Need To Know If I Can Get The Full Path Of A File From FileReference Or By Other Wa
Hello guys I have two questions, first I need to know if I can get the full path of a file from fileReference or by other way by without using xml file, if here is a way please help me.

Second, I have a movie clip and I want to apply two event Listeners to it (mouseEvent.CLICK, mouseEvent.DOUBLE.CLICK) together but only .CLICK one is executed twice when I Double click the movie clip, if you have any solution I would be appreciate that and thank you any way.

Full Path Of A Selected File
Hi there!

When using fileRef.browse to select a file on my disk, how can I get displayed in a TextField the full path to this file and the content of the file in a ScrollPane?

Many thanks in advance for your help!

Ho To Get File Name And Full Path Of A Local File
I want to be able to get the file name and it's full path of a local file. I was thinking of using "FileReference" but FileReference doesn't permint accessing the local file path. Can anyone suggest a way of doing this.

Thanks

Progressbar From File Upload Tutorial Not Working
Hi Guys,

as said the upload file tutorial seems to be misfunctional. When I upload files bigger than 200kb (big enough at least to even see a progress with dsl speed uploadspeeds) the progressbar (and the percentage number) reach 100% almost instantly... with only about 300kb possibly beeing tranferred.

lets say you choose to upload a 3 mb file.. then after about real transfered 300kb its already saying 100% and the bar is also at 100% width, whilst the "real" upload is still running in the background.

after the "real" upload is finally finished, then the file is placed in the specified folder and the swf resets as wanted.

however, that makes the whole point of the progressbar useless, as it appears to be "stuck" when it reaches 100% so fast while the download actually hasnt even reached real 10%.

can we please fix this? i added two more textfields to check for the properness of the totalbytes and bytesloaded values.

the totalbytes value seems to be correct always. and yes,
the bytesloaded value advances to the totalbytes value.

its just that it advances much to fast - as said reaches the totalbytes value within parts of a second wheres the "real" tranfer barely just had started.

any ideas`? someone experiencing the same phenomenon or is it just with me?

I just had an email from my costumer and he says it works fine - he uses Mac SAFARI as a Browser. To me the failure still exists in IExplorer and Firefox.

aprreciated
Zitho

Downloaded File Includes Full Path Structure
I'm using the code below to allow a user to download a file. The problem I am having is that, if the file is located at
/images/english/

and I say I want to download it to myDocuments

instead of having an images saved in MyDocuments
/MyDocuments/1.gif

it creates the same folder structure as the file that was downloaded and saves it here:
/MyDocuments/images/english/1.jpg

This isn't the whole code, but I think I included all the stuff relating to downloading files







Attach Code

public function showDownloadScreen()
{
this.downloadscreens.enabled = true;
this.downloadscreens.visible = true;
this.downloadscreens.alpha = 100;

this.downloadscreens.gotoAndStop("start");

var files:String;
var index:Number;
var filename:String;
var filepath:String;

filepath = fileList[0];
index = filepath.lastIndexOf("/");
filename = filepath.substring( index + 1, filepath.length );
files = filename;

for (var i:Number = 1; i < fileList.length; i++)
{
filepath = fileList[i];
index = filepath.lastIndexOf("/");
filename = filepath.substring( index + 1, filepath.length );

files = files + ", " + filename;
}

this.downloadscreens.start.bodytext.text = "To save the selected file(s):
" + files
+ "

to your computer, please click the download button and select a destination.";

}

//--------------------------------------------------------------------------------
public function showCompleteScreen():void
{
this.downloadscreens.enabled = true;
this.downloadscreens.visible = true;
this.downloadscreens.alpha = 100;

this.downloadscreens.gotoAndStop("complete");

var index:Number;
var filepath:String;

index = file.nativePath.lastIndexOf("/");
filepath = file.nativePath.substring( index + 1, file.nativePath.length );

this.downloadscreens.complete.bodytext.text = "Your file(s) have been saved to " + filepath + ".";
}

//--------------------------------------------------------------------------------
public function showErrorScreen():void
{
this.downloadscreens.enabled = true;
this.downloadscreens.visible = true;
this.downloadscreens.alpha = 100;

this.downloadscreens.gotoAndStop("complete");

this.downloadscreens.complete.bodytext.text = "Error! File not found.";
}

//--------------------------------------------------------------------------------
public function hideDownloadscreens(evt:Event):void
{
this.downloadscreens.alpha = 0;
this.downloadscreens.enabled = false;
this.downloadscreens.visible = false;

this.downloadscreens.gotoAndStop("start");
}

//--------------------------------------------------------------------------------
public function startDownload( evt:Event )
{
this.hideDownloadscreens(evt);

file.addEventListener( Event.SELECT, dirSelected );
file.browseForDirectory( "Select a directory" );
}

//--------------------------------------------------------------------------------
// Open a directory selection window
public function dirSelected( evt:Event )
{
if ( this.fileList.length > 0 )
{
this.currentFile = 0;

this.loadFile();
}
}

//--------------------------------------------------------------------------------
public function loadFile():void
{
var filename:String = this.fileList[this.currentFile];
var byteLoader:URLLoader = new URLLoader();

byteLoader.dataFormat = URLLoaderDataFormat.BINARY;
byteLoader.addEventListener( Event.COMPLETE, onDownloaded );
byteLoader.addEventListener( SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler );
byteLoader.addEventListener( HTTPStatusEvent.HTTP_STATUS, httpStatusHandler );
byteLoader.addEventListener( IOErrorEvent.IO_ERROR, ioErrorHandler );

var fileRequest = new URLRequest( filename );

try
{
byteLoader.load( fileRequest );
}
catch (error:Error)
{
this.showErrorScreen();
}
}

//--------------------------------------------------------------------------------
public function securityErrorHandler(event:SecurityErrorEvent):void
{
this.showErrorScreen();
this.downloadscreens.complete.bodytext.text = "Error! The security settings prevent you from saving
these files to your computer.";
}

//--------------------------------------------------------------------------------
public function httpStatusHandler(event:HTTPStatusEvent):void
{
this.showErrorScreen();
this.downloadscreens.complete.bodytext.text = "Error! HTTP error, file wasn't found.";
}

//--------------------------------------------------------------------------------
public function ioErrorHandler(event:IOErrorEvent):void
{
this.showErrorScreen();
this.downloadscreens.complete.bodytext.text = "Error! IO error, file wasn't found.";
}

//--------------------------------------------------------------------------------
// On file downloaded, save file
public function onDownloaded(evt:Event)
{
var filename:String = this.fileList[this.currentFile];

saveFile( file.nativePath + "/" + filename, evt );

this.currentFile++;

if ( this.currentFile < this.fileList.length )
{
loadFile();
}
else
{
showCompleteScreen();
}
}

//--------------------------------------------------------------------------------
// Write file to hard drive
public function saveFile( filename:String, evt:Event )
{
var myFile:File = File.documentsDirectory.resolvePath( filename );
var myFileStream:FileStream = new FileStream();

myFileStream.open( myFile, FileMode.WRITE );
myFileStream.writeBytes( evt.target.data, 0, evt.target.data );
}

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

[F8] How To Upload A Flash Site Into A Full Screen
Dear all,

I have a question to ask you guys,
I just made a flash website, and I used import the .swf file in to Dreamweaver and upload it as html page. Everytime I do that the .swf file is only in the center of the html page (not in covering the entire html page), but I want the flash mobie to be full screen when viewing with an internet browser.

http://www.jonathanyuen.com/main.html This is what I mean by full screen.
Is this something have to do with Flash or Dreamweaver? Please help me to do it.

Thank you so much for your time and help,

Flash Projector Shows Full Path In Title Bar
Hi

I created a Projector in flash and when run on MAC, it shows full path in title area (Top of the window).
Can we fix it??

Thankz.

Full Class Path As Eclipse Likes And Flash IDE Doesnt
For those of you who use eclipse and those of you like me thinking about converting here is an interesting debate..

eclipse likes to use full classpaths in the definition inside the class i.e.

Packagea.classA.TheClass

flash likes just TheClass name and this is what I have learnt through text books -then defining the path in the settings. If the path is defined in the class there are errors when compiling, id like to know what is best practise.

..

Audio File In Flash-file Upload Problem
sir/mam,
i am doing web designing usingflash and no have to embed audio file into it. both mp3 and avi are too large for a flash file to upload.I have sound forge and have even reduced the size of the mp3 or avi to the correct frame rate.
is there any other audio fomat suitable for flashmx2004 with lesser bytes.

Audio File In Flash-file Upload Problem
sir/mam,
i am doing web designing usingflash and no have to embed audio file into it. both mp3 and avi are too large for a flash file to upload.I have sound forge and have even reduced the size of the mp3 or avi to the correct frame rate.
is there any other audio fomat suitable for flashmx2004 with lesser bytes.

I Need FlashDB Help...?
Thanks to MusicMan I managed to get my FlashDB script working on my tripod server.
But i have a problem, Whenever I use FlashDB's functions to write variables onto my server it replaces the .txt already there and then writes the variables I wanted written onto the server. I DONT WANT IT TO DO THAT!!!!!!
I want it to update the .txt file not completely overwrite it.
For example..
Lets say in the .txt file I have this:
password=beef&user=admin
and then i use Flash DB to write this onto the same .txt file:
cashflow=600&age=99
When I do this kind of operation it overwrites the password and user variable and then writes the current variables being sent...

Is there any alteration to the .pl file to simply 'update' the .txt file, not completely overwrite it?

Full Flash Site Tutorial
Hey,
I read your flash tutorial on a web-site http://www.kirupa.com/developer/mx/full_site.htm, but I had a question. How do you make your other .swf files appear in the middle? I copied and pasted the code, but when you click on the button it doesn't do anything.

Thanks for your time!

Full Flash Site Tutorial
Hey,
I read your flash tutorial on a web-site http://www.kirupa.com/developer/mx/full_site.htm, but I had a question. How do you make your other .swf files appear in the middle? I copied and pasted the code, but when you click on the button it doesn't do anything.

Thanks for your time!

FlashDB Pro's Summoned
I am having trouble with Flash DB.
My site is hosted on Tripod and I need help with the .pl file... what do i change in it...
This is the .pl file I downloaded and the contents
--------------------
#!/usr/local/bin/perl
#
# FlashDB v1.5 - Database front/end for Flash 4.
#
# See instructions at: http://www.kessels.com/FlashDB
#
# (C) 1999 J.C. Kessels
# http://www.kessels.com/
# jeroen@kessels.com



################################################## ###############################
# Configuration section.

# $Database
# Change this into your database-directory, the directory on the harddisk of your
# webserver that will hold the data. It must be an absolute path, do not use
# constructions like ".." or "$USER", and do not enter an URL. The directory
# should be outside the document-tree of your webserver, and have proper
# read/write permissions so that FlashDB can read/write files in it.
# This setting must be exactly the same in both the FlashDB scripts.
# Windows-NT users: use forward-slashes "/", not back-slashes "".

$Database = 'd:/www.kessels.com/FlashDB/';

# End of configuration.
################################################## ###############################

# Initialize.
use Config;
$Filename = ''; # There is no default filename.

# Send the standard HTTP header. Make sure output is not cached in the
# user's browser.
print "Content-type: text/html
";
print "Expires: Thu, 01 Dec 1994 16:00:00 GMT
";
print "Cache-Control: no-cache, must-revalidate
";
print "Pragma: no-cache
";
print "
";

# Get the Filename from the parameters. Special characters in the filename such
# as '/' and '' are translated into spaces, and '..' is removed altogether, as
# security against hackers.
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
binmode(STDIN);
read(STDIN,$in,$ENV{'CONTENT_LENGTH'});
} else {
$in = $ENV{'QUERY_STRING'};
}
@args = split(/[&;]/,$in);
foreach $i (0 .. $#args) {
$args[$i] =~ s/+/ /g;
($key, $val) = split(/=/,$args[$i],2);
$key =~ s/%([A-Fa-f0-9]{2})/pack("c",hex($1))/ge;
$val =~ s/%([A-Fa-f0-9]{2})/pack("c",hex($1))/ge;
$val =~ s/[^a-zA-Z0-9]//g;
if (($key eq 'filename') && ($val ne '')) {
if ($val =~ /^([w]+)$/) { $Filename = $1; }
}
}
if ($Filename eq '') {
print "state=no_filename_specified";
exit 0;
}

# Open and lock the file. If the file could not be opened then exit.
$fn = $Database . $Filename . ".txt";
if (!open(FILE,"<$fn")) {
print "state=cannot_open_file";
exit 0;
}
if ($Config{'d_flock'} eq "define") { flock(FILE,2); }
binmode(FILE);

# Print the contents of the file to Flash 4.
print "state=done&";
print <FILE>;

# Close and unlock the file on disk.
if ($Config{'d_flock'} eq "define") { flock(FILE,8); }
close(FILE);
---------------------------
The part i am having trouble with is...
---------------------------
#!/usr/local/bin/perl
#
# FlashDB v1.5 - Database front/end for Flash 4.
#
# See instructions at: http://www.kessels.com/FlashDB
#
# (C) 1999 J.C. Kessels
# http://www.kessels.com/
# jeroen@kessels.com



################################################## ###############################
# Configuration section.

# $Database
# Change this into your database-directory, the directory on the harddisk of your
# webserver that will hold the data. It must be an absolute path, do not use
# constructions like ".." or "$USER", and do not enter an URL. The directory
# should be outside the document-tree of your webserver, and have proper
# read/write permissions so that FlashDB can read/write files in it.
# This setting must be exactly the same in both the FlashDB scripts.
# Windows-NT users: use forward-slashes "/", not back-slashes "".

$Database = 'd:/www.kessels.com/FlashDB/';

# End of configuration.
----------------------------
What do i replace the
"$Database = 'd:/www.kessels.com/FlashDB/';"
with? My site is hosted on tripod and they say i dont need the "#!/usr/local/bin/perl"
the general site address for tripod is...
http://yourusername.tripod.com

Please help Thanx
____________________
GameProSyrus

Flash 8 File Upload (file Types)
Hi,

I am usin ghte macromedia eg up upload files to a server, at the moment I can only upload images / docs as these are the specified file extensions, does any1 know how i can modify the following to allow for all files?


Code:
function uploadImage(event:Object):Void {
imageFile.browse([{description: "Image Files", extension: "*.doc;*.gif;*.png"}]);
}
thanks you

Tutorial Problem - Full Flash Site
OK, so I followed the tutorial on kirupa.com on how to build a full flash site. I've modified it a little to add animations for when all the page elements come in (nav buttons, text boxes, etc). However, after checking and rechecking the code and animations, I'm still getting errors from the buttons that are supposed to load the other swf files. I'm attaching the swf (the fla is too big), email me and I'll send you the fla.
Thanks in advance

Kirupa's Full Flash Site Tutorial?
Hi I have Flash 5 and when I tried to unzip the "Full site.zip"
file in "Creating a full flash site tutorial" I keep getting uexpected file format for the .FLA file. None of them seem to work/open for me.

I really want to try this tutorial and learn a few tips but the zip file does not work....

Full Site Tutorial

Can anyone please help? Does the zip file work for you?

Thanks

Sahiba

Creating A Full Site In Flash Tutorial
I read the tutorial on how to create a full flash site: http://www.kirupa.com/developer/mx/full_site.htm.

I want to know if you can have load another SWF from an already loaded SWF file.

Eg. Say I have index.swf and file1.swf and file2.swf

From index.swf, I load file1.swf into that movie clip ('contents'). I want to put a link to file2.swf on file1.swf, but I want file2.swf to load in 'contents' which is located in index.swf.

How do I do that?

Thanks in advance!

Creating A Full Flash Site Tutorial
Thank you for this. I found the tutorial very easy to follow and to complete successfully. So now it's time for my own version!

About Tutorial Full Screen Flash Page
I tried following your steps for building a Full Screen Flash page, but i noticed that it doesnt work with firefox.... any suggestions?

Thanx

Kirupa's Full Flash Site Tutorial
I'm confused on how those circles are moving in the back. Could someone explain this to me? Thanks.

Build A Full Flash Site With AS3 Tutorial
HI,

I have problem building a full flash site with AS3. Actually, I learn how to do it from here

http://www.kirupa.com/developer/mx/p...transition.htm
http://www.kirupa.com/developer/mx/full_site.htm

but since it's changed from MX to CS3, I don't know how to convert
from the older to AS3.. please anyone can help me.. my client wants me to change the whole site to AS3..

Thanks,

Bit Stuck On Full Flash Site Tutorial :(
hi i was reading through the full flash site tutorial
http://www.kirupa.com/developer/mx/full_site.asp
and i got sorta stuck on the last part of the first page. can someone help me explain what kirupa means by the instance content? because i'm sorta new to flash mx and i'm not sure what he means so any help will be appreciated thx

Creating A Full Flash Site Tutorial
Did u paste the actions correctly as the tutorial says(Right-Click your button and paste the action below), if u did, then an Fla would be needed to analyase your problem.

Yours,
h88

Question About Creating Full Flash Site Tutorial
I have successfully recreated the full flash site in the tutorial of the same name, and I am now trying to apply what I have learned to my own document. The problem I am running into is with the contents movie clip which will hold the swfs I want to load. The tutorial puts this clip at location 0,0 in the main timeline. I want to have it somewhere else, say for instance x=270, y=175. When I do that I don't see the .swf, however, if I put the container clip at 0,0 I do see my swf, it is just not where I want it. Basically, I want to be able to place an image in a specific place in my movie, not at 0,0. Can anyone help me figure this out.

Also I might want to place this image behind a mask and then use buttons to scroll through the image, is there a way to do this using an external swf?

Any help would be greatly appreciated.

Thanks

Question About Creating Full Flash Site Tutorial
swf's are being loaded when we click on the menu,right? my question there is "is it possible if i replace those swf's with jpg's?"

Full Screen Flash Page Tutorial Question...
Will the FullScreen Flash page tutorial work with Flash MX version? The tutorial was tested only in Flash MX 2004. So... will it? : )



Thanks a lotttt. : )

Scrolling Text - Full Flash Site Tutorial
Hi

Under the Flash MX tutorials, there is a tutorial entitled "Full Flash Site". The tutorial was very helpful and easy to follow, howerver, one of the pages showed a scrolling text box; the "Locations" link. I was wondering if anyone could show me how to do this. I can create scrolling boxes with Flash's standard components, but they are not anywere near as nice as these ones.

Anyone help?

john

Searching For The Ultimate Full Screen Flash Tutorial
Hi all..

seems to be a few threads floating around about full screen flash sites. The tutorial on Kirupa is good, but I think as I saw in another thread only really "scratches the surface" of what needs to be done in order to create a well designed, working full screen flash site. So are there any in depth tutorials out there? Ones that go through all the ways to apply onResize and so forth? I found this thread on flashdevils.com;

http://flash-forum.flashdevils.com/s...hlight=padding

but of course this guy already has a good understanding of what's invovled...I want to know if there are any tutorials that deal with the process in this kind of detail...if anybody knows that'd be great!

Question About Creating Full Flash Site Tutorial
I have successfully recreated the full flash site in the tutorial of the same name, and I am now trying to apply what I have learned to my own document. The problem I am running into is with the contents movie clip which will hold the swfs I want to load. The tutorial puts this clip at location 0,0 in the main timeline. I want to have it somewhere else, say for instance x=270, y=175. When I do that I don't see the .swf, however, if I put the container clip at 0,0 I do see my swf, it is just not where I want it. Basically, I want to be able to place an image in a specific place in my movie, not at 0,0. Can anyone help me figure this out.

Also I might want to place this image behind a mask and then use buttons to scroll through the image, is there a way to do this using an external swf?

Any help would be greatly appreciated.

Thanks

Question About Creating Full Flash Site Tutorial
swf's are being loaded when we click on the menu,right? my question there is "is it possible if i replace those swf's with jpg's?"

Full Screen Flash Page Tutorial Question...
Will the FullScreen Flash page tutorial work with Flash MX version? The tutorial was tested only in Flash MX 2004. So... will it? : )



Thanks a lotttt. : )

File Upload From Flash - Id.io
Hey everyone, just got a file uploader from flash finished.
Tell me what you think.

http://www.impulsedigital.com/idio/idio-v1/

There are still a few bugs in it, but overall works great.

Only works in IE (would be -really- easy to make work on Netscape...)
Only tested on a PC

Thanks,

Daniel Newman
impulse digital

Upload A File In Flash
I found someone that has made it work using ASP as a backend tool.

I wish to do the same but with PHP but I cannot convert the ASP code to PHP ... basically I dont understand it.

Can someone help me out and either guide me as to how to convert it or do it for me?

Upload File On Flash Using PHP
How can i Upload file (.zip) with Flash using PHP.

Use Upload File In Flash ?
Hi,
How can I use careers form and to upload a file and send it wiht the email..?

regards

File Upload Through Flash?
I understand that I can use PHP to help me with this. However using flash, could I possibly create a button that will open the Open File Dialogue box, and send the filename path to PHP to upload? I could always use a popup window to allow me to do this, however through flash would be more convenient.

Flash File Upload
Hi,
I'm wondering if anyone knows if it is possible to upload a file to a server through flash. I would image it would take some server side scripting but, is there an actionscript version of the HTML <input type='File'> for the visitor to browse his or her hardrive?

Thanks

How To Upload File Using Flash
hi all,

I already know how to make a Browse button in Flash to browse the local directories. But say if someone selects a file to be uploaded to my server. I never want my user to have my password and username to upload the file via ftp, and i think no body will want this. So what would be the procedure to upload the file to my server

File Upload In Flash?
Hi guys,

I've got a form in Flash and I want to add a 'file' form field to upload an image. Can anyone tell me what I need to do to achieve this?

File Upload Using Flash & Asp
Hi,

I am making Program for uploading File on server Using Flash & ASP

when i use only asp the file is uploading Properly

But when i use the code with Flash it gives error

Request object error 'ASP 0206 : 80004005'

Cannot call BinaryRead

/test/fileupload/Loader.asp, line 28

Cannot call BinaryRead after using Request.Form collection.

i am attaching my two Asp File which I am using

Plesse help to over come this problam

Flash 8 File Upload
Flash 8 File Upload:

How could I receive some server side response?

For example, when my server script is finished with storing the file on the server, it will respond with a string giving me a custom message?

Flash+PHP File Upload
I know it has been mentioned on the forums but maybe I just need a fresh pair of eyes to see what I'm missing here. Im trying to upload files to my server using php. When I select the files in flash using the FileReferenceList class, all seems well as it looks like its uploading... I mean, I get the progress event traces and even get the "uploaded" trace from the Complete handler, but when I go to my server, the files aren't there! Im pulling my hair out on this one! Both the php file and the folder to house the images are on the same directory and chmod to 755.

Here's my AS3 and php codes. Please someone tell me what i'm doing wrong here.

AS3

ActionScript Code:
var fileRefList:FileReferenceList = new FileReferenceList();
fileRefList.addEventListener(Event.SELECT, selectHandler);
fileRefList.browse();

function selectHandler(event:Event):void
{
    var request:URLRequest = new URLRequest("http://www.[mydomain].com/simple_upload.php");
    var file:FileReference;
    var files:FileReferenceList = FileReferenceList(event.target);
    var selectedFileArray:Array = files.fileList;
    for (var i:uint = 0; i < selectedFileArray.length; i++)
    {
        file = FileReference(selectedFileArray[i]);
        file.addEventListener(Event.COMPLETE, completeHandler);
        file.addEventListener(ProgressEvent.PROGRESS, progressHandler);
        file.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
        try
        {
            file.upload(request);
        }
        catch (error:Error)
        {
            trace("Unable to upload files.");
        }
    }
}
function completeHandler(event:Event):void
{
    var file:FileReference = FileReference(event.target);
    trace(file.name+" uploaded.");
}
function progressHandler(event:ProgressEvent):void {
    var file:FileReference = FileReference(event.target);
    trace("progressHandler: name = " + file.name + " bytesLoaded = " + event.bytesLoaded + " bytesTotal = " + event.bytesTotal);
}
function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
}

PHP

PHP Code:



<?php

$fileName = basename($_FILES["Filedata"]["name"]);
@move_uploaded_file($_FILES["Filedata"]["tmp_name"], "images/".$filename);

?>

File Upload In Flash
Hi Friends


I want to make an application where the user is able to upload a jpeg image from his computer and modify it.


Please give me examples.

Thank You.

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