Menu icon Foundation
How to save with an image file a user uploaded?

Suppose you want a user upload an image file at the client side, and then you want to save the image file on the server side. In the good old days, with JavaScript, you use the script specified by the "action" script of an form, and you use server side JavaScript to save the file.

How can you do this with Foundation (or Yeti)?

Thanks in advance!

imageuploadserver side

Suppose you want a user upload an image file at the client side, and then you want to save the image file on the server side. In the good old days, with JavaScript, you use the script specified by the "action" script of an form, and you use server side JavaScript to save the file.

How can you do this with Foundation (or Yeti)?

Thanks in advance!

Brian Tan almost 4 years ago

There are many third party frameworks available to handle file upload. jquery as well as php, perl...

Ercan Murat KISACA almost 4 years ago

Foundation is a front-end framework and you can use the technique you talk about.

I use this plugin for uploading file
http://codecanyon.net/item/contact-form-generator-form-builder/1719810?ref=tinyamasisurum0

Mousheng almost 4 years ago

Thanks a lot, Brian. The question is, Foundation uses its our server. Does this server support javascript, php, or something else? What's the default language the server supports? If I deploy the application to a cloud server or some 3rd party server machine, what's the requirement of that server machine? For instance, does it have to have Foundation installed?

Sorry for so many questions.

Brian Tan almost 4 years ago

Javascript/jquery runs on client. php runs on server. If you have control over your server, it is easy to add php support. Apache and nginx both supports php-fpm. I like unmanaged VPS server http://www.a2hosting.com/6494-15-1-120.html and cloud VPS server http://www.a2hosting.com/6494-28-1-159.html , they allow you to install pretty much install anything you like.

Mousheng almost 4 years ago

Well, I should have said jsp. I don't know php. Does the Foundation server support jsp?

Thanks.

Brian Tan almost 4 years ago

Foundation is just a front-end framework to help you with web page layout. I believe jsp like php or asp(?), generate and serve the web pages that can contain foundation framework and markups. Oranges and apples that blends together.

Mousheng almost 4 years ago

Thanks for the explanation. I will just try it out. Weird that this website does not have a search field to look for docs. :)