Uploading of photos is fixed
Lagt til av: Ole Kristoffer Hole Olsen | publisert: 13.12.2009
1.st imprvement: A new script is created for uploading photos. When a user uploads a picture and by some reason aborts the upload at a certain point, a copy of the file is already uploaded and given the right name, but the post in the database, including all the information is not created. Then the renaming of the files will be wrong as long as the naming follows the database numbering,To prevent this error in the future, the script will now overwrite existing pictures, when there is no corresponding database post to an image.
2.nd improvement: Added function for simultaniously uploads. Previous errors has also occured due a problem in the script clause, so that the image was given an ID at a late stage of the upload. This is now changed, so that the first thing which happens is that the image gets its unique ID.
Happy uploading!
|