reb0101
Posts: 2
|
| Posted: 03/04/2008, 5:43 AM |
|
Hey all,
I’m relatively new to code charge. I got into it a while back and got sidetracked and trying to jump back into it now.
I need some help on the file upload function.
I’m developing a site that will collect data from several teams. All the data that will go into the database is text, maybe 10-15 fields for this particular table.
What I would like to do is have them be able to upload supporting documents for each record they input and they will be .pdf format.
I’m using a access database right now and it will end up on SQL Server but I’ve got issues with SQL Server right now. Hopefully will be fixed in the next day or so.
So I’ve got a field called ‘attachment’ on the table.
I don’t want to even start trying to figure out how to physically lodge the .pdf file in the table so I am going with a path to a folder.
It seems to work, I have bound the attachment field and even uploaded a .pdf file.
So far so good, or so I thought.
When it displays the record, there is the attachment along with all the other fields. You cannot however click on the attachment and have it open in Acrobat.
I then added a link and bound that to the attach field. Now it comes up and it’s hyperlinked, but when I click on it, it opens another browser window with the whole record and all the fields.
Any clue how I can upload the .pdf file, have it bound to the rest of the fields of the record and when that particular record is displayed in a grid you can click on the .pdf attachment and have it open?
|
 |
 |
datadoit
|
| Posted: 03/04/2008, 8:38 AM |
|
Could be that the mime-types of your server (IIS?) are not configured
correctly (?). Could be that the link is also adding an extra
..asp/.php/.html at the end (?). One way to test those are to go to like http://www.irs.gov and click one of their PDF links. It should open in
your browser. If not, then there's a browser/Acrobat issue. If so,
your problem is in your server (see above).
|
|
|
 |
|