# Help with flash 8 upload/download using php

**URL:** <https://forum.kirupa.com/t/help-with-flash-8-upload-download-using-php/164078>\
**Category:** Uncategorized\
**Created:** [September 28, 2005, 1:28pm UTC](https://forum.kirupa.com/t/help-with-flash-8-upload-download-using-php/164078 "2005-09-28T13:28:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![penguin](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@penguin](https://forum.kirupa.com/u/penguin)\
**Post date:** [September 28, 2005, 1:28pm UTC](https://forum.kirupa.com/t/help-with-flash-8-upload-download-using-php/164078/1 "2005-09-28T13:28:20Z")

</div>

I am trying to get this source working on my server  
[http://blog.oinam.com/archives/2005/08/flash\_8\_file\_upload\_download/](http://blog.oinam.com/archives/2005/08/flash_8_file_upload_download/)

I original files were in coldfusion but I could get it to work on my server. I am now trying it with php.

this is what I did…

deleted out viewFiles.cfm and uploadFiles.cfm files  
replaced them with , uploadFiles.php which works fine

then made a viewFiles.php with this code

```auto
 
<?
$xmlOutput = '~?xml version="1.0" encoding="UTF-8"?^~row^';
$handle=opendir("userUploads/");
while ($file = readdir($handle)) {
	if(!is_dir($file) && !is_link($file)) {
$xmlOutput .= '~file name="' . $file . '" size="' . filesize("userUploads/" . $file) . '" path="userUploads/' . $file . '" /^';
	 }
}
$xmlOutput .= '~/row^'; 
header("Content-type: text/xml");
echo $xmlOutput;
?>

```

Then changed the two links in as file to point to these new php files  
and then changed the two links in the index.html file to point to the new files.  
uploaded all files and  
then cmoded the userUploads folder to 777

---- when I tested it I can upload files fine and I can see them in the userUploads folder on my server,but cannot view these files in the download section nor download them.

Any suggestions
