htaccess asking for password multiple times using Jquery File Upload

htaccess asking for password multiple times using Jquery File Upload

Hi guys,

I'm trying to implement the Jquery File Upload plugin on my website.
I made a link in my website to reach the folder where the plugin is installed. Without any protection everything is working perfectly, i can manage files, upload, download.
Then, I tried to protect the file manager with a htaccess file.
The problem is, when I go to the manager, htaccess is asking for the password. If wrong, error, if right, I'm in. But then, if i want to delete a file, htaccess is asking again for the password. To display the 
images, asking password. To upload, asking password. All the time.
I kept the tree structure of the plugin.
It's like :
www
--my website
----exchange (where the plugin is installed)

My htaccess :
AuthUserFile /home *** /www/domain.com/exchange/.htpasswd
AuthGroupFile /dev/null
AuthName "acces restreint"
AuthType Basic
require valid-user

My htpasswd :
user:password

I also kept the htaccess wich was in the "files" folder in the plugin, and touched nothing in it.

Anyone got a solution, or some help with that ?
Thank you so much, and sorry for my english, i'm french :)