|
Posted by Danny Boy on 04/21/07 07:42
J.O. Aho wrote:
> Danny Boy wrote:
>
>
>>He didn't mention anything about limits either. But now, when done, the
>>script can only upload 4 images at the time and he's claiming that
>>that's the limit for the http protocol. IMHO, I think that's a piece of
>>info that he ought to have told me beforehand as it's not "real batch"
>>at all - at least not in my book. So I have to find some other solution
>>somewhere.
>
>
> The main limit is the following setting in php.ini: upload_max_filesize = 2M
>
> It's not a limit on the amount of files you can select.
>
> There is of course the limit how much memory the php script can use (you set
> that in php.ini too), but the images are stored as files on the server and not
> loaded into the php script, so this limit will not come in question in your case.
>
>
>
>>The questions I have are:
>>
>>1. Is that true about 4 file upload limit?
>
>
> No, the limit is the size of the content you are uploading (in MBs).
>
>
>
>>2. Are there some other way to solve this with php/MySQL that's not too
>>complicated?
>
>
> Depends on how the script you have is written, if it's done properly then you
> can just add on new input fields where to select the images to be uploaded.
>
> If the script is badly written, then it may be better just go to freshmeat.net
> and search for a good opensource project that does what you need.
>
>
>
>>4. I'm not too happy to pay the guy for this, as I think he should have
>>told me from start, or at least at the point when he found out about the
>>limit. Am I overreacting here?
>
>
> Much depends on the contract you wrote, IMHO he didn't deliver the application
> you had bought, so I wouldn't really think you are obligated to pay for it
> until he delivers you the application you asked for and of course depending on
> the fine print of the contract you may not even have to pay the full sum as he
> didn't deliver it in time.
>
>
A million thanks for fast feedback, Aho!
Maybe I need to add a few things: What I had in mind (but didn't
explicitly tell him) was that I preferred a way to select several files
from the hard drive at once and upload. His solution is four independent
upload "slots" on the page, each one only able to get one file. Maybe
that is browser dependant? Or is my idea doable?
Also: The contract says "batch" and doesn't say any number at all. I
perhaps would have accepted if he had told me from the start (or when he
found out). I just don't like being presented this finished solution as
a matter of fact, like "here's what you get. Be happy". In particular
now if what you're saying is correct; that it's not the number of files
that's important, but the aggregated file size of them.
And about the file size; OK, I understand this can be altered at will. I
can also change the actual server settings to accept just about any
uploasd size. Presently it's set to 10MB.
Again, thanks a bunch for input. Much appreciated! If you have anything
to add, please do.
Cheers,
Danny
Navigation:
[Reply to this message]
|