PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.6x (http://www.photopost.com/forum/bugs-vbulletin-3-6x/)
-   -   mass upload regular expression (http://www.photopost.com/forum/bugs-vbulletin-3-6x/132945-mass-upload-regular-expression.html)

sebulba August 16th, 2007 11:01 AM

mass upload regular expression
 
In
/includes/functions_gallery_imageedit.php


Around line 325

Code:

Content visible to verified customers only.
This regular expression breaks mass uploads.

A file named
aphoto (1).jpg

Gets out of this regexp named
aphoto1.jpg

The rest of the upload process can't file the file, and bugs with the first error message (usually "image too small, 0x0")

in upload.php
Code:

Content visible to verified customers only.
Removing the regexp completely solves my problem (I only use mass uploads)
This bug existed in my 2.0 install as well...

There must be a "clean" fix for this...

sebulba August 16th, 2007 11:24 AM

ALso, sometimes it finds out "false duplicates" due to this piece of code

Code:

Content visible to verified customers only.
in fetch_image_info

image (1).jpg would be a false duplicate of a previous "image1.jpg" uploaded by someone else.

sebulba August 20th, 2007 04:32 AM

Zach ? Hello ? I see you're answering other threads...
Not asking for a fix but could you answer PM or send a confirmation
in this thread ?

Zachariah August 20th, 2007 10:03 AM

Quote:

Paris Hilton nude in this private message !
:o

I have seen it yes, I have not reviewed / tested it yet.
- sorry working on CMPS 3.0 rc1 block for the gallery.

sebulba August 20th, 2007 10:26 AM

Thanks,

I must admit that usually I fix the code myself, but that piece of code is a mystery to me. I'm not sure what the regexp was meant for (probably used both for solving something about http uploads and creating a problem for mass uploads)

The regexp itself looks wrong (but since I don't understand what it is for) and anyway creates a problem.

I also do not understand what the "existsarray" is meant for. It seems to create problems for both mass and http uploads (refuses to upload files that have the same name as a previous file ? What's the point, they can be different files even with the same ?)

So I think I could seriously break code that would be useful to other if I simply post a "fix" myself.

I'll wait :)

sebulba August 25th, 2007 04:18 PM

not sure why this was moved here ?

this is a bug report indeed !


All times are GMT -5. The time now is 08:48 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97