At this time, the best advice is to use an external script to synchronize the database with the actual file names.
Download links does not work(26 posts) (8 voices)
ok, but the problm is that customer download unusable file ...
Because Original picture (HQ) have the name "picture.jpg_backup"
Ah, so the user ends up having to rename the file back to a .jpg extension...
I'm not a Nextgen expert, but it seems that this behavior should be configurable. Have you tried the Nextgen support forum?
I think that estore has not been maintained according changes of nextgen gallery.
I foolishly read the site and ordered your plugin.
But I'm starting to believe it will never work.
I have to find another solution.
I lost a lot of time ...
I am surprised that NextGen gallery is renaming the file with a ".jpg_backup" extension which is not a valid image file extension but this should not be the end of the road.
Open the "lib/mimetype.php" file from eStore plugin and search for the following line of code:
"jpg" => "image/jpeg",
Once you find it just add another line below with so it looks like the following:
"jpg" => "image/jpeg", "jpg_backup" => "image/jpeg",
This will tell the browser that this weird ".jpg_backup" extension should be treated as an image file and the download should work fine. Let me know how you go.
I have tested to download a file with .jpg_backup
Customer can't read this file on osx , windows XP, vista and seven (tested this morning)
There are 7 months that nextgen gallery has made this change ...
.jpg_backup is not a file for user of nextgen.
.jpg_backup only permit to restore original file instead of resized image in nextgen.
There are 2 solutions :
1°) you publish hack, for modify nextgen
for exemple, when you save you file the picture renamed nameofpicture_backup.jpg
instead of nameofpicture.jpg_backup
2°) you modify estore to be compatible with the evolution of nextgen gallery.
your script automatically rename all the picture will be downloaded...
I wait with impatience your reply.
How will the operating system be able to read a ".jpg_backup" file extension? This is not a valid file extension which is why it can't read it. That doesn't mean eStore is not doing what it is supposed to do which is download the exact file from your server to the clients computer as it is. Remember, when you open that file in a browser it can read the image file so when you save it it saves it as a .jpg file and hence you can open the file in your OS. WP eStore is not an image reader... its job is to download the file securely from sellers server to customer's computer! All you have to do is rename the ".jpg_backup" file to ".jpg" after you download it to your computer and the operating system will be able to read it fine.
With that said, I have now added an option in eStore which will check for file names with ".jpg_backup" and change the save as name to ".jpg_backup.jpg". To enable this option open the "download.php" file of eStore plugin and search for the following line of code:
//$file_name = eStore_perform_save_as_file_name_massaging($file_name);
Once you find it, change it to the following:
$file_name = eStore_perform_save_as_file_name_massaging($file_name);
First, thank you for your work.
I think we're close to a perfect solution.
This extension is not very clean :
- estore must copy the .jpg_backup file or files (because it necessary not changed nextgen gallery) and rename it with clean name when customer buy it.
1°) copy .jpg_backup
2°) rename for exemple prefix_name_of_file_suffix.jpg
it necessary to use another name that name_of_file.jpg
because it name of resized file in nextgen gallery.
Thank for your help
You must log in to post.