Source language: Translate to:

Subir foto y guardarla en una variable en aplicacion web

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

Subir foto y guardarla en una variable en aplicacion web

Postby gusgusl » Sun Oct 16, 2016 10:04 am

Existe algún Plugin que permita subir una foto por el usuario y que la guarde en una variable para luego ser usada?


There is a plugin that allows upload a picture for the user and store it in a variable before being used?
gusgusl
 
Posts: 254
Joined: Fri Mar 12, 2010 12:44 pm

Re: Subir foto y guardarla en una variable en aplicacion web

Postby Neosoft Support » Sun Oct 16, 2016 12:34 pm

I think you have to upload the file to a folder on your server. There are several JavaScript libraries for this including:

http://fineuploader.com/index.html

http://www.dropzonejs.com/
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: Subir foto y guardarla en una variable en aplicacion web

Postby gusgusl » Wed Oct 19, 2016 8:29 pm

En "Neobook" existe la opcion "File Open Box" que permite ejemplo cargar una foto y se la asigna a un objeto "Picture"
Mi pregunta es si "NeoApp" en su version final tendra algun comando parecido al de "NeoBook"
LO que quiero hacer es que el usuario pueda cargar una foto y asignarcelo a una variable dentro de la aplicacion


In "Neobook" There is the option "File Open Box" that allows example upload a photo and assign it to a "Picture" object
My question is whether "NeoApp" in its final version will have some similar to "NeoBook" command
I want to do is allow the user to upload a photo and asignarcelo to a variable within the application
gusgusl
 
Posts: 254
Joined: Fri Mar 12, 2010 12:44 pm

Re: Subir foto y guardarla en una variable en aplicacion web

Postby luishp » Thu Oct 20, 2016 3:16 am

Con JavaScript es muy fácil cambiar una imagen de un objeto "Image" por otra.
Sólo necesitas conocer la ubicación de la imagen.

Usign JavaScript is quite easy to change one image for another one on an "Image" object:
Code: Select all
BeginJS
  Image1.src="http://domain.com/foto.jpg";
EndJS


Otra cosa es que necesites una imagen almacenada en el dispositivo del usuario ya que ahí requieres algunos pasos adicionales y te vas a topar con las restricciones de seguridad.
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com
User avatar
luishp
 
Posts: 359
Joined: Wed May 23, 2007 10:17 am
Location: Spain

Re: Subir foto y guardarla en una variable en aplicacion web

Postby Neosoft Support » Sun Oct 23, 2016 11:19 am

You can create a Container object and add the following to the object's HTML property:

<form action='' method='POST' enctype='multipart/form-data'>
<input type='file' name='userFile'><br>
<input type='submit' name='upload_btn' value='upload'>
</form>

My question is whether "NeoApp" in its final version will have some similar to "NeoBook" command
I want to do is allow the user to upload a photo and asign to a variable within the application


There should be a file selector option that works like the example above. I'm not sure about a built-in upload feature, but it's possible.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to General NeoAppBuilder Discussion

Who is online

Users browsing this forum: No registered users and 1 guest