# Uploader works, but name trouble

**URL:** <https://forum.kirupa.com/t/uploader-works-but-name-trouble/217054>\
**Category:** Uncategorized\
**Created:** [February 22, 2007, 4:56pm UTC](https://forum.kirupa.com/t/uploader-works-but-name-trouble/217054 "2007-02-22T16:56:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vintage](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vintage](https://forum.kirupa.com/u/vintage)\
**Post date:** [February 22, 2007, 4:56pm UTC](https://forum.kirupa.com/t/uploader-works-but-name-trouble/217054/1 "2007-02-22T16:56:56Z")

</div>

Hi there, I made [this little uploader thingy](http://www.vintagesworld.be/uploader/upper.swf) and it works okay.  
Now I build a check in the php uploader script that if the file already exists, the integer behind the uploaded file gets raised.

So, if someone uploads “file.swf” there wil be a file on the server with the name “file0.swf”  
If anyone else also uploads a file named “file.swf” there will be a “file0.swf and file1.swf”

After uploading you can click a link in the swf to the uploaded file, but the swf doesnt know if there allready excisted a file with the same name.

by default I link to fileName0.extention (file0.swf) but how can i detect with my swf if the file allready existed, so the name is now changed ?

is there some line of code that does something like sendAndLoad, but then with uploadAndLoad (for example)

I hope I made myself clear since my english isnt that great:crazy:
