When you bulk upload wallpaper is there a way to make it so the file extension does not upload with the name of the file? For example when I upload a file named Corvette, it uploads with the .jpg and makes the title Corvette.jpg and then I have to go back and edit the wallpaper and take out the .jpg. Any way to fix this? Thanks.
Wallpaper Script Forum » How-To and Troubleshooting
Bulk Upload
(12 posts)-
Posted 1 year ago #
-
That is strange. It shouldn't do that. Please mail us your domain and FTP details via the Contact page
Posted 1 year ago # -
Zizzyx, did you solved your problem? I am currently experiencing that same problem. the first 100 wallpaper names are fine but it suddenly includes the .jpg extension when I upload the next 100 sets of wallpapers.
Does anyone in this forum experienced the same problem and found a way to solve it?
Any help will be greatly appreciated :)
Posted 1 year ago # -
Toni, did you find the reason on what is causing this file extension problem. it's pretty annoying to see wallpapers with a .jpg extension
please help us on this problem...
thanks in advance.
Posted 1 year ago # -
Can you show an example?
That's kinda odd. Sounds like you uploading files with example.jpg.jpgPosted 1 year ago # -
yes it's very odd and it confuses me a lot and I'm also not uploading a wallpaper with a .jpg.jpg name. on my first 100+ uploads all wallpaper names are fine, but after that it includes the .jpg extension either on bulk upload or on web upload. I also saw some wallpaper site that has .jpg on their wallpaper names. I tried re-uploading all the files but still fails.
I'm thinking if it's possible to trim the .jpg string when it uploads to the database, I'm not a php programmer so I don't have an idea on how to do this and what file to edit. that is the solution that I can think as of now.
If anyone in this forum knows how to do this please share it with us.
Posted 1 year ago # -
Could it be an .htacess issue? Maybe renaming the files or not. Mine so far seem fine.
Posted 1 year ago # -
I'll try to check also my .httaccess file and look for any unusual code there. I never did touch my httaccess file since the installation.
I've tried experimenting with the codes, at some part I succeed, I place a trim function then it removes the .jpg but the problem now is it displays the short name not the wallpaper name
ex.
I uploaded "This Is A Wallpaper.jpg" and my site displays "this_is_a_wallpaper"I think I'm close to solving this issue.
I just hope I solve this problem first before I lose my mind hehe
Posted 1 year ago # -
calling admin, support or other php and my sql people here. I'm beginning to lose my mind here @_@ I've revert my the script installation but still didn't work. I'm also trying to fix it by trimming ".jpg" characters, the output is good it did trim the ".jpg" characters but my script is now displaying the shortname instead of the name (this_is_a_wallpaper instead of This Is A Wallpaper).
please give me some suggestions, Help please :(
Posted 1 year ago # -
Whats your URL, would like to see...
Posted 1 year ago # -
thanks for replying nikhil. you are the most helpful member here in this community.
Unfortunately you won't see anything because I already edited my wallpapers and manually remove .jpg extensions to my wallpaper names :( . I see a lot of wallpaper sites having the same problem as mine.
Posted 1 year ago # -
Problem Solved!!! yahooooo!!!
I've inserted the following lines on ws.php
$short_name = rtrim($short_name,'.jpg');
$name = rtrim($name,'.jpg');below
$short_name = $this->item_short_name($short_name, $id);on
function upload_wallpaper($name, $short_name, $keywords, $id, $author_id, $category, $sourceFile="", $bulk=0, $old_short_name="")This trims the ".jpg" extension on wallpaper names when it is uploaded.
Thanks to all people that shared their thoughts on this problem. A lot of thanks to http://php.net and Google ^_^
Posted 1 year ago #
Reply
You must log in to post.



