Page 1 of 1

File Uploader

Posted: Tue May 28, 2013 6:04 pm
by Shahrukh Badar

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

--


File Uploader

Posted: Tue May 28, 2013 6:08 pm
by Maryna Brodina

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


File Uploader

Posted: Tue May 28, 2013 6:59 pm
by Shahrukh Badar

con you give me a example according to my scenario.


File Uploader

Posted: Tue May 28, 2013 8:51 pm
by Maryna Brodina

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


File Uploader

Posted: Wed May 29, 2013 8:53 am
by Kateryna Grynko

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...