# File Upload to different folder script (crossdomain.xml)

**URL:** <https://forum.kirupa.com/t/file-upload-to-different-folder-script-crossdomain-xml/281364>\
**Category:** flash\
**Created:** [February 8, 2009, 9:55am UTC](https://forum.kirupa.com/t/file-upload-to-different-folder-script-crossdomain-xml/281364 "2009-02-08T09:55:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Post date:** [February 8, 2009, 9:55am UTC](https://forum.kirupa.com/t/file-upload-to-different-folder-script-crossdomain-xml/281364/1 "2009-02-08T09:55:57Z")

</div>

Hi Guys,

Im uploading a file using FileReference class, but the script I’m uploading to is in a different parent folder, under the same domain. So Im getting a FILE I/O error, and through some tests, the flash is not accessing the file in the first place. Im sure that my paths are correct, and I know it’s a security problem.

So I did a crossdomain policy file (crossdomain.xml) :

```auto

<?xml version="1.0"?> 
<cross-domain-policy> 
    <allow-access-from domain="*" /> 
    <allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>

```

and I put it in that parent folder, but still it’s not accessing the script. I want to know what should go inside the crossdomain.xml file and where I should put it exactly.

Thanks guys!!!
