CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 File Upload link field

Print topic Send  topic

Author Message
nsukho

Posts: 10
Posted: 12/15/2012, 9:30 AM

I have created a Record form with File Upoad component in it, called attachment . I have got this Record form working fine storing the uploaded files into the storage folder.
I have also created a List (grid) form on the same table. I changed attachment component from label to link. I want to display the file name of the attachment in that grid which is linked to the attachment. Once it is clicked I want it to display the actual attachment from that storage folder. I tried to use Href Source to accomplish it, but no luck. Basically I want it to build a link like: http://localhost/storage_folder/file_name.pdf
I appreciate your help.
View profile  Send private message
SecureCloud


Posts: 51
Posted: 12/15/2012, 12:45 PM

to nsukho...

this is what u r trying to do...

Your trying to upload a picture on maintenance page
then on your list page you want to be able to click on the image link displayed
and open in new window or same window

i dont know if this will help you, but this is what i did..

when using file upload, (linux path)
setup like this....

Quote :
TEMPORARY FOLDER: tmp/
           FILE FOLDER: upload/

and add slash at the end, not beginning.
make sure you set permissions of both the server folders to chmod 777

now thats the upload part, now comes the displaying the image....
change the label to link (or image link) then

Quote :
     HREF TYPE:    DataSource Parameter
HREF SOURCE:    cust_file_upload1      // (whatever your fileUpload Name is)

then view the HTML source, you will see something like this...

<td><a href="{cust_file_upload1_Src}"

and ADD this...   upload/    ( or whatever YOUR upload folder is.. ) like the code below.

<td><a href="upload/{cust_file_upload1_Src}"

i also added
target="_blank"

to open in NEW window...

so your final link will look like this....
http://www.someurl.com/upload/201212052237410.Sample.pdf


ALSO...
if you only want to show the JUST the filename, ( Sample.pdf ) instead of ( 201212052237410.Sample.pdf )

on the the file upload component add a Before Show -> Add Action -> Get Original Filename.


Hope this helps you or Someone else.....


_________________
-------------------------------------------------------------------------------------------------
If this helped You, Please Donate to SecureCloud Here, ANY amount Accepted.
http://securecloud.biz/donate/
Thank You, Your help Keeps us Going.

View profile  Send private message
SecureCloud


Posts: 51
Posted: 12/15/2012, 1:12 PM

AND, if you want to go a step further
see my other post.

http://forums.yessoftware.com/posts.php?post_id=120027

IMAGE based on FILETYPE..

shows an image based on filetype, and its clickable.

i have 4 LARGE collections of HOTT, filetype's images ( 16x16 & 23x23 & 32x32 ), ex. .png, .pdf, .zip...etc..

ALL these images ( 16x16 ) are CLICKABLE !




another plug, if you like the Style, the Black Glossy Header
see this post...
http://forums.yessoftware.com/posts.php?post_id=120039


if you or anyone else is interested send me a PM.

Just trying to help the community like other people have helped me.
Thanks Everyone.


_________________
-------------------------------------------------------------------------------------------------
If this helped You, Please Donate to SecureCloud Here, ANY amount Accepted.
http://securecloud.biz/donate/
Thank You, Your help Keeps us Going.

View profile  Send private message
nsukho

Posts: 10
Posted: 12/15/2012, 2:47 PM

I followed the instruction and it worked perfectly fine.
I appreciate your help.
Thanks a lot...
View profile  Send private message
SecureCloud


Posts: 51
Posted: 12/15/2012, 3:02 PM

Your Welcome,

Glad I could Help.



_________________
-------------------------------------------------------------------------------------------------
If this helped You, Please Donate to SecureCloud Here, ANY amount Accepted.
http://securecloud.biz/donate/
Thank You, Your help Keeps us Going.

View profile  Send private message

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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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