Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12414
Latest: mtnclb69
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 40848
Total Topics: 7158
Most Online Today: 81
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 50
Total: 50

Author Topic: Edits and category changes zero's file size.  (Read 482 times)

0 Members and 1 Guest are viewing this topic.

Offline Zaphod

  • Downloads Pro Customer
  • Newbie
  • *****
  • Posts: 21
    • View Profile
Edits and category changes zero's file size.
« on: March 12, 2021, 11:45:50 am »

Hi all, I found a niggle when I created a testing download area for testing new game maps (Left for Dead 2 Campaigns). here is the scene:- Maps are uploaded to a testing sub category, those that are played and tested as good are then edited to a different sub-category this is fine except the file-size is now reported as 0 Bytes, a quick workaround is to view the properties of the file in question copy the file-size find the entry in the database and edit the file-size manually. Obviously this is less than desirable, the clean alternative is to re-upload the file when changing the category, the same thing occurs when editing the description of the download. I also suspect that when re-uploading the file it creates a duplicate of the file in the SMF/downloads/0 directory (in my case) when I looked I do see two file entries with identical sizes and suspect one is an orphan.

I haven't deleted the older file in case of you know what.
I did write a query with a counter to move any file in the category id (source) and change the id to category (destination) and zeroing the file count in source and adding the file count to the destination category count so as to match reported files as actual numbers.

Again this will do a clean fix, but is time consuming and I hate messing with a database unless I have to.

I feel the best solution is to have a silent update to the  "edit file option" or not zero the file-size when editing the entry for category changes or spelling error on description etc.

I have used for some time the free version but never maintained it, someone else did that, but due to the large file sizes of Left for Dead 2 campaigns many exceed the php file size limits. What we did in the past was to upload to a local directory via ftp and use the upload url to display file then edit database to show file size.

Love the pro version has many features I love but now do not want to edit things like adding a game screenshot due to the file-size being zeroed.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15404
    • View Profile
Re: Edits and category changes zero's file size.
« Reply #1 on: March 12, 2021, 01:12:28 pm »
Yes that was a bug! A recent issue caused by file upload url filesize changes.

Has been fixed in latest update.
5.0.5a
!Fixed filesize edit bug when editing a file for SMF 2.0 going to zero when no uploads
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Zaphod

  • Downloads Pro Customer
  • Newbie
  • *****
  • Posts: 21
    • View Profile
Re: Edits and category changes zero's file size.
« Reply #2 on: March 12, 2021, 01:42:48 pm »
Thank you :)  :)  :)  :)

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
3675 Views
Last post April 01, 2009, 09:44:04 pm
by Wegg
0 Replies
2086 Views
Last post July 14, 2009, 12:07:07 pm
by Wegg
2 Replies
2335 Views
Last post December 15, 2010, 06:15:23 am
by marcbkk
1 Replies
2167 Views
Last post June 07, 2011, 06:39:11 am
by SMFHacks
2 Replies
2587 Views
Last post September 14, 2012, 10:23:56 am
by SMFHacks

+- Recent Topics

From SMF Gallery Lite to SMF Gallery Pro by SMFHacks
Today at 12:30:14 pm

looking for SMF mods by cloudsurph
April 13, 2021, 11:59:07 am

siapamoyanganda.com/familyforum/ by SMFHacks
April 12, 2021, 07:55:58 am

Problem with SimpleAudioVideoEmbedder by Panoulis64
April 08, 2021, 09:08:58 am

An error occurred! You must select a photo. by SMFHacks
April 01, 2021, 11:49:48 am

embed video in forum theme by SMFHacks
April 01, 2021, 11:49:15 am

Just bought Awesome Post Ratings by replayuk
March 28, 2021, 03:38:52 am

Errors when creating a category & terms by SMFHacks
March 24, 2021, 08:23:38 pm

Wanted trade option by SMFHacks
March 23, 2021, 05:07:15 pm

Arcade system dead or re-incarnation. by SMFHacks
March 19, 2021, 09:32:57 am

Powered by EzPortal