Shahrukh Badar
Posts: 0
Joined: Sun May 19, 2013 6:45 am

File Uploader

Hi,
Currently i am using html input[file] to browse and select the file.
like ; <!-- <input type="file" name="media" id="fileselect" --

i want to use camera service instead of this html file control and map the selected file by camera service to the "fileselect".

if this is not possible then tell me how can i replace this by camera service. without disturbing current functionality.
I have panel, in panel i have form, fielselect with submit button to post form to other url.

my code (in panel):
<!--

Code: Select all

<form method="post" enctype="multipart/form-data" action="[url=http://imageshack.us/redirect_api.php]http://imageshack.us/redirect_api.php[/url]"  hidden="hidden" 
     <input type="file" name="media" id="fileselect"  
     <input type="hidden" name="key" value="xyz" 
     <input type="hidden" name="error_url" value="" 
     <input type="hidden" id="su" name="success_url" value="" 
     <input id="upd" type="submit"  
 </form 

<script type="text/javascript"
// set event listener for call preview after select file
var fileselect = $('#fileselect');
fileselect.bind("change", fileSelectHandler);
</script

--

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

File Uploader

Hello! Please use < code < /code tag to post entire code.

Shahrukh Badar
Posts: 0
Joined: Sun May 19, 2013 6:45 am

File Uploader

con you give me a example according to my scenario.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

File Uploader

Working on it, but no news for now. I'll update.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

File Uploader

Hi Shahrukh,

1) First follow this reference https://getsatisfaction.com/apperyio/...
and map the result to a localStorage variable
2) Then follow this one: http://stackoverflow.com/questions/49...

Return to “Issues”