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




Stumped After Uploading To Flash Site To ISP Server



Hi guysIve got a problem viewing my flash site once ive uploaded to the server. Locally my flash site works fine. I still havent fully finished it, but the main swf is able to access and open the other swfs, css, xml and external images. It also works when I use my local web server. After I've uploaded all the files to my ISP server (swf/css/xml and images), only the main swf and interface swf seem to be working. The main swf loads interface.swf using MovieClipLoader(). The main swf also loads a css style file properly.Once the interface swf loads, it dynamically creates 4 buttons, namely profile, photography, folio and contact. When you click on each button, the interface swf calls a function in the main swf to load another swf. Each of the 4 swfs profile.swf, contact.swf, photography.swf and folio.swf have code which is meant to load an xml file and external images. All the swfs are in a single directory. The xml, css and images are in /xml and /css directories. The problem is when you click on one of these buttons, nothing loads. It works fine locally and using a local web server, but not on my isp. Ive checked that all the files are uploaded properly and have used lowercase names for all of the files. Also when I access each of the swf's individually, they work fine (ie. http://www.myaddress/photography.swf )Any ideas?the site can be found heremain swf herephotography swf herecontact swf here



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 06-06-2006, 11:20 AM


View Complete Forum Thread with Replies

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

New Flash...uploading Files To Server..HELP
Hey people.....this might sound really stupid but I need the answer. I have exported my flash movie and put it in an html file named index. What other files do I need to upload to my server besides the HTML file that holds my Flash movie??? Also...i already uploaded my html/ flash file along with but it just seems to load forever when i try to access my website and the preloader never shows up. Do I have to do something or tell something to start the movie???? Everything looked fine when I looked at it in flash when I tested the movie in flash and in IE when I put it in my html....HELP????????????

Uploading Flash Onto Free Server?
How, in detail please, do you upload a flash site to a free web service, Tripod. Thanks for all your help.

Editing Flash After Uploading Onto A Server.
for example maybe I want to update the news on a page created in Flash MX. Do I have to update it in flash mx and THEN upload it all over again? Please Help. Thanks!

Possible? Uploading Photo To Server From Flash?
Has anyone discovered a creative way to "browse" select and upload an image from FlashMX to a server?

I'm using a mySQL driven flash page via PHP to manage all of my content/nav/etc. and I was hoping to be able to browse using a flash interface for self managed photos. The only way I can think of doing this is by popping up a php window and browsing for the image that way. (that's a non flash solution)

Curious if anyone has found a better way?

-i

Uploading Images To A Server From Flash
Hi,

Does anyone know how to let people upload an image to a server without having the mod_security disabled on the server end?, I found a php script that does it locally but mod_security blocks it on my server. Any ideas?, or links to examples?

thanks

Gavin

Uploading A File To The Server With A Flash Interface
Hi all,

I creating a b'back end' if you will, in my flash movie that allows the administrator to upload files to the server using a browse for file button. I have managed to trigger the <input type:file> from my form using javascript and a flash button. The form is hidden using dhtml layer. when I try to submit my form using the same process (calling a javascript function from a flash button) I get a run time error that says "Access Denied". I have no problems when I submit the form without the flash button (the file iuploads to the specified directory without a glitch).

<script language="JavaScript" type="text/JavaScript">
<!--
function browse(){
document.uploadform.File1.click();
}

function sendit(){
document.uploadform.submit();
}

//-->
</script>
<H1>File Upload</H1>



<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="400">
<param name="movie" value="browsebutt.swf">
<param name="quality" value="high">
<embed src="browsebutt.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed></object>
</div>


<div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2; visibility: visible;">
<FORM name="uploadform" method="post" encType="multipart/form-data" action="ToFileSystem.asp">
<INPUT type="File" name="File1">
<INPUT type="Submit" value="Upload">
</FORM>

</div>

<HR>

Is my code correct?...when I activate the windows debugger it faults at "document.uploadform.submit();

Please help!

Thanks,
Nader

Uploading Local Files To Server Using Flash
I'm creating a form in Flash. In this form, I would like to have an option to upload local pics to the server.

How can flash browse the local drive and send the file?

Uploading Flash Site
i know this is stupid but, how do i upload my .swf as my index page on my web hosting, if someone could help that would be great.....
thx

Uploading A Flash Site
I am an unworthy newbie but that's why there's boards like this. I have a Flash template and need to upload it to a server and after reading a bunch I still don't get it. The folder I have contains all FLA files. I understand that these are the source files that are editible.
1. But doesn't there have to be an html file that all of these somehow embed themselves into?
2. And do the Fla files have to be saved as movies?
3. The file types would then ALL be uploaded?
4. I changed a background image by using the exact same size image as the other but the color of the stage background shows around the edges. How do you fix that?

Thanks for your help...Maybe someday I will grow up to become a total Flash Web Designer Purist....

Junzie

Uploading Files To Flash Site
I want to be able to have visitors to my site upload their own jpgs or gifs. This is for a project where one would design their own sticker, and they could use graphics they already have. The user would alsl have to be able to delete the image if they changed their mind. Then they would have to be able to save the file, if they decided on a design. I am pretty sure this is possible, and if anyone can give me a direction to start in, at least, I would greatly appreciate it.

Uploading Flash MX Site From Dreamweaver4
Hi Everyone,

I'm having trouble trying to figure out which flashMX file/files to upload onto my server and how to execute the process using Dreamweaver 4. Any help would be greatly appreciated. Thank-you

Uploading Directly From Flash To Site Possible?
Each time I publish, I have to pop into Dreamweaver and upload thru there.

Does FLash MX2004 Prof have that built in someplace? I've found the "Edit Sites" button there, but nothing beyond that.

Uploading Directly From Flash To Site Possible?
Each time I publish, I have to pop into Dreamweaver and upload thru there.

Does FLash MX2004 Prof have that built in someplace? I've found the "Edit Sites" button there, but nothing beyond that.

Uploading Images To A Flash Site/movie
hello
im trying to make a website,or a movie im working with distorting images of faces, and people are supposed to be able to upload their images, and using tools they can distort their faces eg stretching them, i dont know which tools im going to make yet because i have no idea where to start from, ive used some actionscripting but i really need a starting point or something to follow? please help.

Trouble Uploading Flash Site Through Dreamweaver
I have godaddy as a hosting service and I've tried to upload my flash site mutliple ways and everytime I type in my url it says that the site doesn't exist on the server or that I did something wrong. But when I try to preview it it works in Dreamweaver. The other problem is that sometimes it'll say that it can't load the swf onto the server, that it either doesn't exist or there is a permission problem. What could this mean?!?! I used Dreamweaver to upload the files and I've included the html and swf files on the server so what could be going wrong?! ARGH! Someone help, PLEASE!

Flash Site Broke After Uploading To Client, HELP
Last edited by CyberGecko : 2004-10-10 at 02:17.
























Hi there. I've been working a site for a client, and I had enough done to upload it to their server before I go on vacation tomorrow. So tonight I uploaded it, but it only seems to load the background, and not my text boxes in the flash movie. It works fine on my server, I don't know whats wrong with it, but its really annoying.

Here it is on my server: www.g3cko.com/concept.html

and on my clients server: www.feswickproductions.ca/flash/

If anyone has an idea of whats wrong with it, I would really appreciate it! Thanks!!!

Uploading Flash To Site, Problems Occur On Tripod.com
Hey, I have a HUGE problem
My site is http://highschoolskater.tripod.com , and it's kinda cool. BUT i wanna update the flash on there. I don't know if youre familiar with tripod's "FileManager", but it just won't seem to update it. I check "Allow overite", and then update the swf and html of the flash, but when i go to the site it hasn't changed. I even tried deleting the files that were there. I did that, then went to the site to make sure it was down, then I updated it with the new files, but when i went back, the OLD FILES were up on the site. I'm really confused and don't understang why this is happening. Please help me. Thanks for your time.

If you have msn or aol please add me. msn: sexy_skate_69@hotmail.com or
aol: poliquin99

John Poliquin

P.S, in the old file (the one up on the site), the play text at the beggining is fuzzy, in the file that i want to upload, it isn't, so maybe look out for that.

Uploading Flash Files-slow To Take Effect On Site
When I upload my flash files (FLA & SWF) to my server, the flash files usually take days to take effect on the website. My last revisions haven't taken effect (shown up on my site) for over a week now... Am I missing something??? Any help would really be appreciated...http://www.flashkit.com/board/newthr...ewthread&f=29#
Yikes!!

Stumped On Preloading Site
I've been creating a site and have been encountering much resistance with regards to implementing a preloader. As I have read in many tutorials, I have removed everything from the first frame of the main timeline. Here I have placed my wonderful preloader, however it doesn't show up until 90ish percent of the .swf has loaded.

If you look at the images below, I have removed the preloader from the first frame, so it is completely blank, yet you will notice that when I publish it, it indicates that the first frame contains over 2MB of 'something' that it needs to load. My file contains multiple nested movie clips, movie clips exported for actionscripting that I load dynamically as the user explores, and I reference the occasional external file.





I am totally perplexed as to what is contained on this first frame, as it is preventing any sort of preloader from being used. Should I restructure the file some way? Should I load this file into another .swf? Any suggestions would be greatly appreciated.

-John

Uploading To Server
Hi,

Must Flash pieces be uploaded to a special Flash server or will any web server do?

Brian

Uploading To Server
Hi

Here is a question I've always wanted to ask....

When i make a few minor changes to a .swf, and then upload it to my server, why is it that most of the time my changes do not get seen on the web site? i.e. I add a new line of text in a sentence, but after I upload it the new sentence is not there. To get the change seen, I have to change the name of the .swf, which is a bit of a pain.

Is this a common problem or is it just me?

Leroy

Help Uploading To Server Please?
Hi, I am SO sorry to bother you guys but I need some help desperately.

In my flash program everything shows up just fine- but when I go to
upload the file onto my server it makes the template off center (to
the left) and it doesn't show the TOS/privacy policy, copyright or
music controls at the bottom of the page. I cannot figure out for the
life of me why it keeps doing this. (Like I said- in the flash program
it does have it and looks fine- it's only when I upload it to my
server).

Here is the link to my page so you can see what I'm talking about--
http://www.foreverdreaming.org/index.html

Here is the url to the flash document:
http://www.foreverdreaming.org/main.zip

What on earth am I missing or doing wrong? Can somebody please help me correct this on my site???

Thank you so much,
Jennifer

It was done in Flash MX2004

Uploading Files To The Server Using Cgi
I have a question. I know how to use CGI scripts to create and modify files on the server. I also know how to upload files to the server using CGI and html. My question is: can I do the same in flash. Is there any way I could just send the location of the local file to the CGI script, and then the script will start uploading the file. And also, I do not want to use SWF/FLASH Studios, because after I use them my application will be unusable on the web. It all has to happen in an SWF file. Please give me some ideas how to accomplish this. THanks a lot.

Uploading Raw Data To A Server
Is there any way I can transfer an image (or raw data) variable from a running shockwave file (or any other locally running program in the browser) to a running flash file, and then uploading this file to a server to be stored?

The reason I'm asking if flash can do the uploading is beacause I am still unsure as to whether shockwave can do it, and I'm exploring all possible avenues.

The idea is that the image can be uploaded from a variable or cast member to the server with a single button click (no, file browsing as it will be already stored in memory). It needs to be an automatic process.

If this post makes no sense at all, I apologise! Just ask me and i will try to explain better.

Thanks!

Tim

Uploading Images To A Server
I've made a drawing pad that let's the user draw pictures using there mouse. Is there anyway they could then save there picture and upload it to a server?

I am using Flash 8.

Uploading Swf File To A Server
Hello guys,
What would be the best way to upload a swf file to a server and how please?

Help Uploading Pictures In The Server
i can't find a tutorial for uploading images in the server using php and flash... maybe i'm using the wrong keywords. please help if you knew some links. thanks.

Trouble Uploading To Server
hey, i've been having some truble uploading a web page to an office server, the web page is based on an HTML file (index) and at least 5 movies (swf) wich should be loaded with no problem. But there is a problem and only a couple of movies are loaded. The administraor of the server tells me it is a problem of the HTML file, but other web designers with more experience in this tell me that it's the server's fault. Can anyone give me some advice about this?

Uploading Files To Server?
Hey all,
My whole site is made in Flash. In order to get my index.htm file, I went into dreamweaver and placed my swf file there, (added meta tags in the code.) When I preview it in the browser everything looks great. Now when I upload to the server, I'm planning on including the dreamweaver file named index.htm and all of my other swf files. Is this the correct way, or am I supposed to publish the file another way? (Just concerned about the dreamweaver file)
Thanks for the help, I really need it.
Nebraska girl

Uploading To Server Causes Problem
I've built an xml photo gallery and it all works fine when on my computer.

When i upload it to server it wot open the pics up, any ideas?

(I upload the html file, swf file, xml file and the folder with pics in to server)

Many Thanks

Sean

Uploading Images [to Server]
Not many examples out there, flash cs3 docs lead to coldfusion servers
using php, do i need to break the image or convert it into bytes?

or can i simply just use a INSERT into statement, and inject it into a blob field.

so using file reference etc in flash and have url point to plain php which just takes the file/var and injects it?

thanks alot
x

Uploading Files On Server
Hello! A problem in the following: whether it is possible to do upload files on server through flash, and only by his means? I know as to make such system with help HTML but the system on Flash is necessary... Or it is impossible? Beforehand thanks!

Setting Parameters,and Uploading To Server
1-I don't quite understand what I'm suppost to edit on the enter.html page, is it neccesary or can it be uploaded as is?
2-Do I make a new folder on server and name it enter or index and place these files in it .js-.jbs-.swf-flash folder,noflash folder,upgrade,flash_get.gif and the enter.html after editing and renaming to index.html?
3-Do I place those files in the /public_html as well?
4-What I am tring to upload is a mouse trailing effect that I download from the movies area as .zip than opened to see the .fla and .swf
I used the publish for html code than I wasn't sure if I place this code on all my pages or just the /public_html/index.html. I use .html,top.html,main.html for my site. I use coffecup editor and bluedomino as server if this helps at all. I have Flash 5 as my program. My site that I designed is http://www.afscmelocal2650.com

.load() Not Working After Uploading To Server
I've been making a flash display for my livejournal recently, and it is working perfectly on my local machine. However, when I upload it to my webserver, the swf is acting strangely.

http://www.aloneone.com/biographical/journal.html

(code)
getJournal = new LoadVars();
getJournal.onLoad = function () {
importText = "";
for (counter = 1; counter <= 20; counter += 1) {
importText += "<br>";
importText += getJournal["event" + counter];
importText += getJournal["datetime" + counter];
importText += "<br>--------------------------<br>";
}
eval("datetime" + counter)
System.useCodepage = true;
fixedText = unescape(importText);
output.htmlText = fixedText;
}

output.htmlText = "Loading Journal.... Please Wait.";
getJournal.load("http://www.livejournal.com/customview.cgi?username=aloneone&styleid=103");
stop();
(/code)

I have a dynamic text field on my stage who's instance is "output". I've also got a button which repeats the .onLoad function commands in case you want to refresh the display. Once the file is uploaded, it appears as though the swf is not trying to load the journal at all. Instead, it jumps straight to the display and outputs blank space.

(specs)
Flash MX
Linux Server (http://www.phpwebhosting.com is host)
Local machine is a P4 2.4ghz running XP Pro.

Please let me know if you've seen anything like this before, or have any idea what I'm doing wrong.

~aloneone

Users Uploading Files To Server
I want to give users the ability to upload files to a server. Any suggestions on how to invoke such an action through flash?

LoadMovieNum Not Working After Uploading Into The Server
Alright i gave up looking for that conversation about loadMovieNum. I have a main page .swf file. I embeded it into an html index file. Then the mainpage.swf is suppose to load different .swf such as about us button files using :
loadMovieNum("about.swf", 6);
when it is being clicked or when that particular frame is reached. All is working fine when i preview locally but as soon as i upload them in the server and then preview, none of those .swf file i tried to load worked! What is wrong in here? I simply dont understand. I tried using absolute and relative paths and its just not working. Can someone PLEASE help me?

Thanks flashkit

Loadmovienum Not Working After Uploading Into The Server
OMG! i have posted a few questions about this in flashkit but nobody seems to know whats up with this. basically, i have made a few buttons in flash. everytime i click on those buttons it would load the content into an empty movie clip/level. All works fine when i hit CTRL+ENTER from within flash. So i put the .swf file into an html page so that when i go to www.mywebsite.com for example, I can see whatever i put inside that html page. But as soon as i upload them into the server (linux), my html page with .swf file in it loads but when i click the buttons, the loadMovieNum function i used in there to load the content of corresponding buttons does not work. I used both absolute and relative paths but What am i doing wrong? my .swf contains actionscript like:

loadMovieNum("test.swf" , 2); ----> this is on the timeline

or

on(release){
loadMovieNum("test.swf" , 2) ----> this is on the button itself
}

Can someone please help me?? I am going crazy! I would greatly appreciate any efforts.

pocahontas

Uploading Files With Media Server 2
Is it possible to upload files using media server 2? I doubt it...
I'm developing a chatbox with live webcam but I need to implement
file uploading just like msn. Which is the best way to do it?

Uploading And Downloading Images From Server
Hi
I want my browser to open up an image from disk and upload it to the server, and than I want to download few images from the server. Can we do that in actionscript.

Uploading Flah File To Server
I am really new to this flash site building. This is my first site that i have created and now i am wanting to post it to the webserver. I have ftp into my webserver and have dragged my .swf file over to the directory. My site still does not show when i type the website name in the address bar. What else do i need to make this work. Again I am really new to posting websites to servers. If any one can help me i would greatly appreciate this. Thank you.

SWF File Not Showing After Uploading To Server
Hey, I've got a dreamweaver file (index.htm), that has a swf file embeded in it. I previewed it in dreamweaver, it looked fine. I've uploaded both the swf file and index.htm files to my server folder (in the same folder). When I try viewing it, everything comes up except the swf file. Dreamweaver says:
"Warning: Attributes and values for the EMBED tag vary by plug-in. Please check that all attributes and values are valid"... -don't know if that has anything to do with it... ANY HELP would be much appreciated, especially for my sanity. here's a little code for www.julianpeterson.com:

<body>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="400" align="middle">
<param name="movie" value="julianmain.swf">
<param name="quality" value="high"><param name="BGCOLOR" value="#333333">
<embed src="julianmain.swf" width="550" height="400" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#333333"></embed>
</object>
</p>
<p align="center" class="style1"> &copy; 2005 Julian Peterson. All Rights Reserved.</p>
<p>&nbsp;</p>
</body>
</html>

Source Code Different When Uploading To Server?
hello,


this is a flash newbe question.

i have a flash movie and i put it in a html layer table so that the movie would be centered in the browser. I used the center tag for the table and in my dreamweaver preview it looks just the way its supposed to. but when i upload the htm file to my server, all of a sudden its not centered anymore. When looking at the source code, my center tags where missing and generally, the source code looked different. why is that? what can i do so that doesnt happen?

thanks for any help,
florian

Dumb Question About Uploading To Server
hello..

I would like to know, when uploading to the server, does one upload:

the swf file/s and the html files
just the swf files
or a combination of these and the FLA's??

e.g. do i need to upload the fla to the web server?

am trying to estimate which web host plan i need and calculate the size of the swf.. but then maybe it's not to do with that but to do with some bandwith thing..

anyway would be good to know..

Also, this is REALLY stupid.. and i think i know the answer, but, if i have exported html and swf files i don't need to upload any images folder to the web server right? because everything will have been imported into the fla and exported.

cheers,
confused squid
:S

Problem With Uploading Scrollpane W/external .swf To Server
This is probably gonna be very simple, but i cann't figure it out.

here's the problem:

my main movie has a scrollpane which shows an external .swf file,
everything works fine when i tested it out in flash (mx).

but after i had uploaded it to the server, the external .swf file doesn't show. I've uploaded all files (main movie.swf file+ external.swf file + index html )using cuteftp.

any suggestions, solutions, are greatly appreciated!
please help!

attached files;
egglogic1 - is the main movie
egg3 is - the external .swf

www.egglogic.com

Problem With Uploading Scrollpane W/external .swf To Server
This is probably gonna be very simple, but i cann't figure it out.

here's the problem:

my main movie has a scrollpane which shows an external .swf file,
everything works fine when i tested it out in flash (mx).

actionscript i used:
_root.board.loadScrollContent("Egg3.swf");
*scrollpane name *external.swf name

but after i had uploaded it to the server, the external .swf file doesn't show. I've uploaded all files (main movie.swf file+ external.swf file + index html )using cuteftp.

any suggestions, solutions, are greatly appreciated!
please help!

Dynamic Text Shows Up On PC... But Not On Web After Uploading To Server
Hi all,

Here's the problem I'm having. I have two dynamic text boxes in my SWF... one with a variable name of "title" and the other with a var of "body". The action in my Frame 1 says:

loadVariables("about_us.txt",this);

Inside about_us.txt, it begins:

title=About Our Company...


&body=<font color="#B8722D"><a href="staff.shtml"><b><u>Meet Our Staff</u></b></a></font> / <font color="#B8722D"><a href="location_map.shtml"><b><u>Location and Map</u></b></a></font>

<img src="map.jpg">

... etc with more text and HTML formatting.



On my PC, everything shows up (though with some image and scrollbar problems... but that's for another thread ). But once I upload to a server, things seem to randomly break. On one server, only the title showed up, with no body text whatsoever. After trying to use about_us.HTM instead of .TXT, nothing would show up.

However, on another test server, the title and body all showed up, but there was no image (where img src="map.jpg" should be). After refreshing a few times and adjusting some line breaks (I think that's all I did), the image showed up again.... but, of course, only on this test server and not on the real server.

Does anyone know what the issue could be? Why won't this stuff show up correctly online? Thanks much!

Lossing Page Format When Uploading To Server
Interesting problem - flash site works fine locally, wether I play the swf file or open the html page that calls the swf file into the browser. Upload the site and all associated files, loose the page format on all pages, headings are lost and files will not load. The site uses as2 code and I have been publishing as that from cs3. Not sure how to correct this problem, any ideas would be helpful.

Path To Xml Not Working Anymore After Uploading To Server
hi
I have a big problem : My gallery ( with xml) was working perfect until yesterday . I uploaded my files to my server to test them.
This morning I reopened the fla to make modif and big surprise : only the big image appears but no thumbs anymore in the scroller.
I tried to trace the xml nodes but thay are now undefined. WHY?
Everything is in the same folder.Nothing changed.
I turned everything upside down but nothing.
Does a uploading can affect some configuration ? Are the xml modified modified after being uploaded ?
HELP PLEASE.

Issues With Uploading Files To A Server Using FileRefence.upload
Ok, I'm not the best at actionscripting, in fact I don't have much experience in it, but I understand the basics of what I'm looking at, which brings me to my current problem.

Here is my current script:

Code:
System.security.allowDomain("http://www.somesite.net");
import flash.net.FileReference;

var listener:Object = new Object();

listener.onSelect = function(selectedFile:FileReference):Void {
statusArea.text += "Attempting to upload " + selectedFile.name + "
";
selectedFile.upload("http://www.somesite.net/upload.php");
};

listener.onOpen = function(selectedFile:FileReference):Void {
statusArea.text += "Uploading " + selectedFile.name + "
";
};
listener.onHTTPError = function(file:FileReference, httpError:Number):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "HTTPError number: "+httpError +"
File: "+ file.name;
}

listener.onIOError = function(file:FileReference):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "IOError: "+ file.name;
}

listener.onSecurityError = function(file:FileReference, errorString:String):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "SecurityError: "+SecurityError+"
File: "+ file.name;
}

listener.onComplete = function(selectedFile:FileReference):Void {
statusArea.text += "Upload finished.
Now downloading " + selectedFile.name + " to player
";
details.text = ""
for(i in selectedFile) details.text +="<b>"+i+":</b> "+selectedFile[i]+"
"
downloadImage(selectedFile.name);
};

var imageFile:FileReference = new FileReference();
imageFile.addListener(listener);

uploadBtn.onPress = uploadImage;
imagePane.addEventListener("complete", imageDownloaded);

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

function imageDownloaded(event:Object):Void {
if(event.total == -1) {
imagePane.contentPath = "error";
}
}

function downloadImage(file:Object):Void {
imagePane.contentPath = "http://www.somesite.net/UploadArt/"+file;
}
I guess my first question is where there is something wrong with the actionscript that I've used here. What I'm trying to do is, I have a form that lets a user select a file and upload it to a remote server. Well the file gets selected, the upload button fuction works, and the data gets sent to my php file, but then goes no where. And there's no error echo'd back to my site, in fact it says that the upload is complete. But I check the files on my site and the image isn't uploaded anywhere. Now there's nothing written in the actionscript or the php as far as username and password to access the site, and I'm wondering if that is the problem, and if so what I need to do in order to send that info so the transfer goes through. At the same time I'm wondering if it's easier to send the files through a ftp or through this web address.

Any help would be much appreciated, if there's something else you all need to see to help me out, just lemme know and I'll post it.

Edit:

Ok, I updated the code to reflect what I'm using now, and here is the php that is server side.


Code:
<?php
if(!is_dir("./files")) mkdir("./files", 0755);
move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']);
chmod("./files/".$_FILES['Filedata']['name'], 0777);
?>
I'm not sure if this will bring any light on my problem, but at this point the file selection is fine, but the problem is that it hangs on the upload. Just says, "attempting" but doesn't go anywhere. Also I want to make the files go to a specific location, and I don't think the php is doing that, and I'm not sure how to change it. I want them to go to a folder of a subdomain. The site itself is also hosted as a subdomian, so I'm not sure if that contributes to the probem or not.

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