value of an uploaded file - Crosstec
Welcome, Guest
Please Login or Register.    Lost Password?

value of an uploaded file
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: value of an uploaded file
#13756
value of an uploaded file 3 Months, 1 Week ago Karma: 0
someone know how to get filename of an upload file.

I want to give possibility to put a web link of a file on a mailback
that user had upload on a form.

at this time in database I have local path only.

if someone can explain to me what I can do to change this.


/home/uploadir/_USER_UPLOAD_FILE.jpg

I want this: www.domain.fr/uploadir/_USER_UPLOAD_FILE.jpg

thanks
l.grube
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Gender: Male wwc_l.grube World Water Council Location: France Birthday: 01/07
Laurent GRUBE
The administrator has disabled public write access.
 
#14928
Re: value of an uploaded file 1 Month, 1 Week ago Karma: 0
same. anyone?
eshraghi
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15951
Re: value of an uploaded file 2 Weeks, 5 Days ago Karma: 1
Here's a little Javascript snippet I've been playing with to do this:
Code:


// Begin Variables
var str1 ="{image1}";
document.write(str1.replace("/home/MyAccount/public_html/URL.com/components/com_facileforms/uploads/", "http://URL.com/components/com_facileforms/uploads/"));



This is part of a PHP file I've been working on to preview uploaded images. I don't have it perfected yet, but I thought I'd try to help out.

Let me know if this helps. I can send the rest of the PHP file if you need it.
erichhaubrich
Web Ninja and Technology Geek
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Gender: Male mezzoa // web technology solutio erichhaubrich Location: Colorado, USA Birthday: 06/06
I love Breezing Forms! - It is the Killer App for Forms on Joomla!
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: , TheMuffinMan