CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Upload .pdf file and open in Acrobat when clicked

Print topic Send  topic

Author Message
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?
View profile  Send private message
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).

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.