Skip to content
Advertisement

Tag: file-type

htaccess – Deny access to pdf files in folders

The goal is to restrict direct browser access to all *.pdf various subfolders within a main folder. The subfolder names in which each pdf file reside are numeric only (characters 0-9; Eg. “work/books/112/myfile.pdf”) What I have so far is: RewriteRule ^work/books/([0-9]+)/.pdf)$ [F,L,NC] Where ‘books’ is my main folder and then whatever numeric folders in which pdf files reside, there are.

List of file types php

I’m looking for a list/description detailing the file type php assigns based on an uploaded file. I have the following script. It takes the uploaded file, and the file type. Compares it to the array …

s3 direct upload restricting file size and type

A newbie question but I have googled abit and can’t seem to find any solution. I want to allow users to directly upload files to S3, not via my server first. By doing so, is there any way the files can be checked for size limit and permitted types before actually uploading to S3? Preferably not to use flash but

Advertisement