Kevin Murphy wrote:
The problem is IE7. All browsers work with this code as is but IE says
Internet Explorer cannot download test.pdf from XXX
The problem with IE was when you told it not to cache the document. If
you just want the browser to download the file rather than let the
Adobe
Kevin Murphy wrote:
$ext = explode(.,$file);
$extension = $mimetypes[$ext[1]];
Other people have provided answers so I'll just make a quick comment on
this bit.
It's not ideal but if you only upload a subset of file types then I
guess it's OK.
Also if the file has more than a single dot in
Kevin Murphy wrote:
1) Write secure files to MySQL as a blob (only secure files would be
written there)
Personally I don't like this strategy but it is always a hot topic on
this list. I don't mind storing a few small images in the db but when
you start to store 200-300Megs it just complicates
Ok, I'm almost there. I took what everyone said (and a few Google
searches later) and built this, which works great on Firefox and
Safari (both mac and PC). The $path leads to a directory outside the
web root, and there is also an array with all the mime types in it
($mimetype).
Kevin Murphy wrote:
Ok, I'm almost there. I took what everyone said (and a few Google
searches later) and built this, which works great on Firefox and Safari
(both mac and PC). The $path leads to a directory outside the web root,
and there is also an array with all the mime types in it
5 matches
Mail list logo