Hi at all
in order to upload a local file to the server I insert into my script a filter to detect NON images files.
Infact at first time I want to upload jpg and gif images only.
But now is borned a new big problem.
User want upload medical DICOM files.
DICOM files have not extension and are like a zip file containing incapsulated images and text.
I know that the DICOM files has to contain text "DICM" at the offset 0x80, so that tags start at the offset 0x84 of file.
I need to know if it is possible to read into a local file of the user to search "DICM" text at the offset 0x80 of the files selcting by the user using my form to upload like following:
<form id="uploadForm" name="uploadForm" action="pld.php" method="post" enctype="multipart/form-data">
<input id="imageInput" type="file" name="userfile" size="66" onchange="chackimageFile();" />
<input type="submit" value="upload file">
Thank you very much in advance