Jump to content

dynamic upload functionality help


Destramic

Recommended Posts

hey guys i'm half way through making a upload script for my site which consists of js and php...but i'm a little concerned about its functionality and how the best way it should work.

 

here is a screenshot of how it looks when a user will click and upload a picture

 

post-7825-0-97578700-1447274653_thumb.gif

 

i used a XMLHttpRequest which moves the image from a temporary directory and uploads to my selected directory...happy days!

 

now i give the user a option to edit image where they can rotate and crop the image (server side)

 

post-7825-0-81083500-1447274851_thumb.gif

 

this is where i need help on the scripts functionality please.

 

 

now when a user uploads a picture it saves onto my server directory...depending on how big the image is it can sometimes take 45 seconds for a 4/5 meg picture to upload which causes problem with the users experience (i think) because...of time...the only way i can see the user editing a image is when it's 100% uploaded and not before....cause if they try to edit before the upload is complete i'm unable to select the image to crop and rotate server side as it wont be uploaded yet.

 

it all just seems like a long process waiting and i'm a bit stuck on what is best to do here.

 

do i continue to allow editing on a image, when its 100% uploaded or is there a better way?

 

i hope my problem is clear enough...also if you'd like to see any code please let me know.

 

thank you

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.