[phorm] [Phorm:] Re: File uploads get cut off with Macs

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 21 Mar 2003 22:44:25 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#2410) Re: File uploads get cut off with Macs 
            <http://www.phorm.com/support/?rev=2410> 
  AUTHOR:   Patrick O'Hara 
  DATE:     March 21, 2003 at 5:44 p.m. EST 

  Reply To: (#2408) File uploads get cut off with Macs 
  Author:   Rich 
  Date:     March 21, 2003 at 10:27 a.m. EST 

Hi Rich, 

The way the file upload works, is that it expects the filename to be in the 
format: 

filename.extension 

you are correct - the algorithm that is used in the file upload module will 
truncate the last letter and replace it with a dot - this is not intentional, 
I'm sure, but it is a by-product of the algorthim that is used. 

I believe that you should not be uploading files without an extension anyway - 
because once on the server, the server will have no idea as to how to deal 
with that file when it is called. 

I suggest you set up a validation to check that the extension is valid (by 
using the FILEEXT validation method - see the documentation) - or assign a 
default extension to those that are uploaded without an extension. Your third 
option is to use a regular expression to pattern match the existance of a file 
extension - again - see the documentation. 

Hope this helps, 

Patrick O'Hara 
WhitsundayIT 
QLD, Australia 

patrick@xxxxxxxxxxxxxxxx 
www.whitsundayit.com 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts:

  • » [phorm] [Phorm:] Re: File uploads get cut off with Macs