# FileRef file upload - how to delete files?

**URL:** <https://forum.kirupa.com/t/fileref-file-upload-how-to-delete-files/309745>\
**Category:** Uncategorized\
**Created:** [May 24, 2010, 12:52am UTC](https://forum.kirupa.com/t/fileref-file-upload-how-to-delete-files/309745 "2010-05-24T00:52:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![typografuk](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@typografuk](https://forum.kirupa.com/u/typografuk)\
**Post date:** [May 24, 2010, 12:52am UTC](https://forum.kirupa.com/t/fileref-file-upload-how-to-delete-files/309745/1 "2010-05-24T00:52:07Z")

</div>

I’m working with the fileupload tutorial found on kirupa.  
[http://www.kirupa.com/developer/flash8/uploading\_fileReference\_pg1.htm](http://www.kirupa.com/developer/flash8/uploading_fileReference_pg1.htm)

I’m actually using the modified version by Masahigo found in the forum which is essentially the same with additional functionality.

So question #1, What is the code to DELETE a file that has been uploaded to the server using FileReference?

question #2  
When the file uploads, the progress bar gets to 100 and that’s it. Why is the upload on complete function not executing? Is this a common problem, what’s the fix? Thanks

question #3  
The progress bar only works sometimes. Does this occur when the jpeg is so small that it uploads almost instantly, not giving enough time for the progress function to fire???
