Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: different file upload error message?  (Read 2854 times)

0 Members and 1 Guest are viewing this topic.

lnguyen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
different file upload error message?
« on: May 02, 2004, 12:17:21 am »

is there anyway to chage the message when a user tries to upload a file that is over the specified file size limit?  right now, if a user tries to upload something too big, they get the error "file not uploaded, check to make sure you have uploads enabled on the server" or something to that extent, i don't remember the exact wording.

its a little misleading to people I think. 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: different file upload error message?
« Reply #1 on: May 02, 2004, 11:20:34 am »

link and test user account (non-admin) with upload permissions, please.

GauGau
Logged

lnguyen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: different file upload error message?
« Reply #2 on: May 02, 2004, 07:19:44 pm »

http://kineticphoto.net

login/pass: cpgtest/cpgtest


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: different file upload error message?
« Reply #3 on: May 02, 2004, 10:30:36 pm »

the error messages are defined in lang/your_language.php (in your case: /lang/english.php). Look up the phrase you don't like and replace it with something you like more.

GauGau
Logged

lnguyen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: different file upload error message?
« Reply #4 on: May 03, 2004, 05:19:18 am »

is that error message used for anything other than ppl exceeding file limits?  The way it is worded seems like it would be called when a directory really isn't writable by the user.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: different file upload error message?
« Reply #5 on: May 03, 2004, 07:37:29 am »

you have to understand the process: when uploading, your file is being moved to a temporary folder on your webserver. If the upload is completed, it will be moved to the target folder. If the upload fails to complete (because the file size is to big), the script only gets the information "it was impossible to move the uploaded file from the temporary folder to the target folder" and creates an error message. The script can't determine in advance wether the file will be too big. That's why you'll have to modify the error message to say additionally "Check if your pic was smaller than XXX kB". Anyway, you shouldn't let users upload large files, your webspace will soon get out of bounds...

GauGau
Logged

lnguyen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: different file upload error message?
« Reply #6 on: May 04, 2004, 05:29:53 am »

ah, I see.

as far large pics, you think 512 is too large?  I have plenty of space to use, so no worries there.  It's mostly friends and families anyway.

Thanks for explaining it!

Linh
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: different file upload error message?
« Reply #7 on: May 04, 2004, 07:43:40 am »

I understand that most users don't understand how to resize a pic before uploading, that's why you'd want them to upload larger files. You'll have to find out what settings work for you. I recommend you take a look ath the XP-Publisher tool that comes with coppermine and recommend using it to your users.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 14 queries.