How to encode file upload path

bramya 09 Nov, 2011
Hi all,

I am using chronoform V4.I have created the form with "file upload" element using method as "file".
But file path is uploading like "20111109115920_images10.jpg" .I want to change that path into encrypted like this "a%3A1%3A%7Bi%3A0%3Bs%3A46%3A%22components%5Ccom_enmasse%5Cupload%5C23261images9.jpg%22%3B%7D"..
1.How to use urlencode and where to use this?

I have tried to print the path by using $_POST[pic]/$_FILE[pic] in custom code,but it not yet all displaying that.
2.How to get the path?

any one please help me with your ideas as soon as possible
thanks in advance.
bramya 09 Nov, 2011
Hi all,
Another 1 doubt in file upload.File upload path is inserted into database table put cant open the same image in components/com_chronoform/uploads/form_name/image1.jpg.While opening the following error is there
"windows photo viewer cannot open this picture because you dont have the correct permissions to access the file location".

guide me a solution for that as soon as possible..
GreyHead 09 Nov, 2011
Hi Bramya,

If you want the path url_encoded then you'd need to add PHP to url_encode it before it is saved.

If you want to downlaod or view it from your browser then you need to have the file URL which is not the same as the path use to save it.

Bob
This topic is locked and no more replies can be posted.