CodeIgniter Forums
Problem with .htaccess regarding SWF files. (htaccess question) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Problem with .htaccess regarding SWF files. (htaccess question) (/showthread.php?tid=34127)



Problem with .htaccess regarding SWF files. (htaccess question) - El Forum - 09-20-2010

[eluser]wdwswapna[/eluser]
Hi Everybody,

I have a problem with my .htaccess. For some reason I can not use SWF files in a protected environment. Can anybody please help me? I'll explain in detail:

I have used the Yahoo uploader to upload multiple images at the same time.
More details:
http://developer.yahoo.com/yui/examples/uploader/uploader-advanced-queue.html

I have also used a .htaccess to protect my domain.
More details:

Code:
AuthType Basic
AuthName "xyz"

AuthUserFile /home/xyz/domains/xyz.com/public_html/.htpasswd

Require valid-user

Due to the .htaccess described above the upload code (SWF) doesn't work. I have tested the Yahoo uploader and it works in a unprotected environment.

Can anybody help me with making sure this works to?

Thank you very much Smile ,

Swapna


Problem with .htaccess regarding SWF files. (htaccess question) - El Forum - 09-21-2010

[eluser]wdwswapna[/eluser]
I hope somebody can help me Smile


Problem with .htaccess regarding SWF files. (htaccess question) - El Forum - 09-21-2010

[eluser]pickupman[/eluser]
I am not a Flash developer, but working some other issues with flash sometimes deals on it's mime type. This usually means data is sent as application/x-octet-stream. This will cause some issues. How about creating a web based authentication system. There a lot of pre built solutions for CI. I am a fan of Ion Auth. That way you may be able to get around your .htpasswd problem, since flash requests are not the same as php.


Problem with .htaccess regarding SWF files. (htaccess question) - El Forum - 09-23-2010

[eluser]wdwswapna[/eluser]
Thank you