# Problem with protected directory and upload

**URL:** https://forum.kirupa.com/t/problem-with-protected-directory-and-upload/268762
**Category:** flash
**Created:** [August 18, 2008, 4:34pm UTC](https://forum.kirupa.com/t/problem-with-protected-directory-and-upload/268762 "2008-08-18T16:34:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)
#### Post date: [August 18, 2008, 4:34pm UTC](https://forum.kirupa.com/t/problem-with-protected-directory-and-upload/268762/1 "2008-08-18T16:34:59Z")

</div>

I have created a video upload application that works fine. The problem is, it exists on a server that is password protected through an .htaccess file.

When I first navigate to the url, the browsers password based prompt comes up. I enter the username/password and I am now in the site.

Now my problem starts here -\> after I have selected my videos to upload and hit upload, it begins to upload and I am then prompted again by the browser for a username/password. The problem with this is every time I upload a video, I am also inserting into a database and with that username/password prompt, it skips the first video every time.

Any idea why I am prompted for the username/password again when I begin to upload in my flash uploader??
