我撰写了一个网络应用程序,使用户能够将其档案上载。 文档将在用户点击“上载荷”纽特服务器后上载。 用户可以通过从路程中取回档案......例如:。 http://www.demo.com/user/abc/download/the_file.jpg
但我发现,所有人都能通过这条道路进入这一档案。 我怎么做,或者是否有更好的办法管理档案,即只有登记用户或档案所有人才能下载档案?
我撰写了一个网络应用程序,使用户能够将其档案上载。 文档将在用户点击“上载荷”纽特服务器后上载。 用户可以通过从路程中取回档案......例如:。 http://www.demo.com/user/abc/download/the_file.jpg
但我发现,所有人都能通过这条道路进入这一档案。 我怎么做,或者是否有更好的办法管理档案,即只有登记用户或档案所有人才能下载档案?
由于业绩问题,直接在文字中提供档案并非一种选择,而且由于记忆限制,实际上不可能为BAIG提供档案。
The best option is to use the Apache module mod_xsendfile. The idea is to redirect all requests to a PHP/Perl/Python script which will just set a HTTP header saying "Hey Apache, serve this file instead" and mod_xsendfile will take care of it.
客户将无法在没有这种认证的情况下下载档案。
如果你希望用户继续在档案系统的道路上查阅档案,那么如果使用像pache httpd这样的材料,你可以使用“htaccess”文档,并拥有向用户或团体提供的目录。
如果你锁定目录,并附有管理文件交付的文字,你可以核对文字许可,并向用户提供所要求的档案或403份。
我倾向于使用文字方法,因为它使我对许可的管理方式和更为复杂的准入情景有了更大的控制。
I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....
I have a div <div id="masterdiv"> which has several child <div>s. Example: <div id="masterdiv"> <div id="childdiv1" /> <div id="childdiv2" /> <div id="...
I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...
<form><input type="file" name="first" onchange="jsFunction(2);"> <input type="file" name="second" onchange="jsFunction(3);"</form> Possible to pass just numbers to the js ...
So I ve got a menu with a hover/selected state and it loads fine in IE6/IE7. However when I scroll down the page and put the element outside of the viewport and then back in I get a broken image! I ...
I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!