CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Upload Problem

Print topic Send  topic

Author Message
ALI

Posts: 6
Posted: 02/05/2004, 5:05 AM

Hi
I have a web project , Im using aspupload (persist) component
when I upload file.. it didn't write image path in my image field in my access db...How Can do it?
thanks
_________________
Thanks
View profile  Send private message
peterr


Posts: 5971
Posted: 02/05/2004, 5:53 PM

Can you please specify how did you configure the Properties of FileUpload component in CCS?

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
aidisim

Posts: 4
Posted: 02/17/2004, 12:04 AM

hi

I am using persits upload.
Have you been able to integrate the progress bar codes?

http://www.aspupload.com/manual_progress.html

Hope u can assist me.
aidi.sim@qalacom.com
View profile  Send private message
Rosario Panzarella
Posted: 09/03/2004, 12:04 PM

:-P

I have the same issue. I am using ASP uploading to sub directories that ccs places the files in correctly but the link entries in access never reference the sub directories. I don't want to have to keep all the files in the root of the database location I need to be more organized
peterr


Posts: 5971
Posted: 09/03/2004, 12:21 PM

Rosario,

I agree that it is no not necessary to keep files in the root of the database location. You can specify the correct path in "File Folder" property of the File Upload component. Make that path outside of your database root if you like.

The database doesn't need to contain file folders (locations). Simply point to the right folder on the page where you are displaying a file.
For example it could be: filefolder/{ImageLink}
On another page it could be: ../filefolder/{ImageLink}
Yet on another page it could be: admin/filefolder/{ImageLink}
or even http://www.WebsiteName.com/filefolder/{ImageLink}

Storing file folders in the same field as the filenames would completely disable your links and access to your files, because Web browsers cannot access your server folder structure and they cannot display files like "c:\inetpub\wwwroot\files\myimage.jpg"
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Rosario Panzarella
Posted: 09/03/2004, 1:11 PM

:-/ No go, thats what i am telling you, i SET the path in "File Folder" property of the File Upload component "/switch/job_aids" forlder and when I upload the files are place in thet directory, However when i dry to display this in a table the link is a dead link

Example:http://lcmc.web.att.com/switch/200493165590.Affid_of_Zoning.pdf?FILE=200493165590%2EAffid%5Fof%5FZoning%2Epdf

ther is no refrance to the path of where the file acctualy was placed that is http://lcmc.web.att.com/switch/job_aids/

I know you cant see this link but try to imagine
peterr


Posts: 5971
Posted: 09/03/2004, 1:14 PM

Yes, that's why you should place the base link/folder in your HTML page. See above.
Your HTML template (HTML mode in CCS) must show the HTML code like: /filefolder/{ImageLink}
How does it look now?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 09/03/2004, 1:29 PM

BTW, they are at least 3 ways to deal with this:
1. Modify the HTML source as mentioned above.
or
2. Modify the "src" property of the Image in Properties -> Format. For example change "{picture}" to "files/{picture}"
or
3. Create an event that will change the Image control value at run-time. For example:
recordform.picture.Value = "files/" & recordform.picture.Value

Take your pick at which solution you'd like to use.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Rosario Panzarella
Posted: 09/03/2004, 1:35 PM

No good, I assume your talking about the HTML in the upload page,

Im not clear on where i am going wrong on this.
peterr


Posts: 5971
Posted: 09/03/2004, 1:41 PM

Sorry, not in the upload page, but in the page that displays the images.
Each page that displays images could point to a different folder, even when displaying the exact same image.
One page may display an image as 'filefolder/{ImageLink}' and another page may display the exact same image as ../filefolder/{ImageLink}. Or like pointed above you can have all pages displaying images as http://www.WebsiteName.com/filefolder/{ImageLink}

Please note that previously I wrote "Simply point to the right folder on the page where you are displaying a file.". So please forget about uploading files for now :-)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Rosario Panzarella
Posted: 09/03/2004, 2:05 PM

Got it, this is from the display page, I told the code what the directory is, not the same as you suggested, only becuase the code dosent specify what you were saying anywhere. I edited the CODE page of the display grid, at the file.page , I added the "urlpath" +
Where file is the field name that hold the upladed data.

While NOT Recordset.EOF AND ShownRecords < PageSize
ID.Value = Recordset.Fields("ID")
TYPE1.Value = Recordset.Fields("TYPE1")
FILE_DESCRIPTION.Value = Recordset.Fields("FILE_DESCRIPTION")
FILE.Value = Recordset.Fields("FILE")
FILE.Parameters = CCGetQueryString("QueryString", Array("ccsForm"))
FILE.Parameters = CCAddParam(FILE.Parameters, "FILE", Recordset.Fields ("FILE_param1"))
FILE.Page = "http://lcmc.web.att.com/switch/job_aids/" + Recordset.Fields("FILE")
POSTED_BY.Value = Recordset.Fields("POSTED_BY")
DATE1.Value = Recordset.Fields("DATE1")
CCSEventResult = CCRaiseEvent(CCSEvents, "BeforeShowRow", Me)
RowControls.Show
Recordset.MoveNext
ShownRecords = ShownRecords + 1

This worked- KEwl

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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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