file extension case sensitive on linux (.jpg .JPG)
orouk - July 29, 2009 - 21:36
| Project: | album photos |
| Version: | 6.x-2.6-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
Unix systems are case sensitive.
WIth the code in "photos_swfu_style.tpl.php" file in photos_swfu folder, there is an linux limitation.
No .JPG file extension are found on linux file system.
You have to add *.JPG;*.PNG;*.GIF;*.JPEG;
// $Id: photos_swfu_style.tpl.php,v 1.1.2.1 2009/03/06 08:22:41 eastcn Exp $
?>
<script type="text/javascript">
var swfu;
window.onload = function() {
var settings = {
flash_url : "<?php echo $v['swf'];?>",
upload_url: "<?php echo $v['url'];?>",
post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"},
file_size_limit : "<?php echo $v['max_file_size'];?> MB",
file_types : "*.jpg;*.png;*.gif;*.jpeg;", // <-----CHANGE THIS : you have to add new extensions (.JPG, .PNG)
file_types_description : Drupal.t("All images..."),
file_upload_limit : "<?php echo $v['num_uploads'];?>",
file_queue_limit : 0,
custom_settings : {
progressTarget : "album-swfu",
cancelButtonId : "btnCancel"
},
...Thanks to correct this.

#1