Menu

#719 Non-standard Filenames Check - Before Acceptance

phpGedView
open
nobody
5
2006-10-31
2006-10-31
RadPoe
No

Before posting I searched and found that different
people complained about different aspects of the same
thing, each one about the trouble he/she encountered.

My suggestion, is:
How about PhpGedView check for non-standard filenames
upon upload (GEDCOMS, media) and either correct or
advise about every known problems?

Common problems:
1. Filename Too long (seems over 31 characters is too
long for Macs)
Example:
'jack_and_jill_went_up_the_hill_to_fetch_a_pail_of_water' >
'jack_and_jill_went_up_the_hil__'

2. Illegal or non-standard characters (Spaces,
Ampersand, Apostrophe, European characters etc.),
possibly with an automatically correction.
Examples:
'my picture' > 'my_picture'
'My_Picture' > 'my_picture'
'jack's_picture' > 'jacks_picture'
'jack&jill' > 'jack_and_jill'
'françois_picture' > 'francois_picture'

3. Add number suffix when filename already exists
Example:
'scan.jpg' > 'scan_002.jpg'

Off the top of my head, that's about it.
What do you say?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.