Nop, just a bunch of photos, so if you zip them, i think its more easy. Dont you think?
Ajax upload, PHP script example
(60 posts) Great offers for webmaster, blogger and web developer!-
Posted 1 year ago #
-
sure it's faster for the internet user to upload many files at the same time, but you know that handling lots of files at the same time is more resource extensive for the server. Finally it depends on your application.
After upload is done, you need to use some linux commands to expand the zip file. Imagemagicks should help you with the watermarks.
Note that this question is not related to this thread, if you have further questions please start a new thread.
Posted 1 year ago # -
i just made the same.. read eveything here.. but when i try to upload something, the screen just blinks and than doesn't upload a thing.
http://snelmer.nl/upload/
(the link)Posted 1 year ago # -
??? you're missing the half of your html, If you're new to web-design you should try some basic html tutorials first
Posted 1 year ago # -
i didnt put it in a design or so..
and im not new to web-design, only new to php
Posted 1 year ago # -
Quote from: Snelmer
"i didnt put it in a design or so..
and im not new to web-design, only new to php"create a FULL and valid html page with all code you need (check the demo two)
look you forgot all JS code too
Posted 1 year ago # -
Thanks, Olaf. This is very useful. I have one question though. Is there supposed to be a thumb and an original size image? I'm only getting the thumb version.
Posted 1 year ago # -
Quote from: the_gnoid
"Is there supposed to be a thumb and an original size image? I'm only getting the thumb version."yes right the example creates only one image:
check the settings for this method (inside the class file):
$foto_upload->process_image(false, true, true, 80);and don't forget to change the values for this vars:
$foto_upload->upload_dir = $_SERVER['DOCUMENT_ROOT']."/upload/"; $foto_upload->foto_folder = $_SERVER['DOCUMENT_ROOT']."/upload/"; $foto_upload->x_max_size = 480; $foto_upload->y_max_size = 360; $foto_upload->x_max_thumb_size = 120; $foto_upload->y_max_thumb_size = 120;Posted 1 year ago # -
So, the temporary file is the original file, then? Makes sense. Thanks!
Posted 1 year ago # -
Quote from: the_gnoid
"So, the temporary file is the original file, then? Makes sense. Thanks!"yeah I did that because I needed only one resized file...
Posted 1 year ago #
Topic Closed
This topic has been closed to new replies.