Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 21, 2013, 09:19:46 pm

Login with username, password and session length
Members
Total Members: 10764
Latest: ozzie4x4
Stats
Total Posts: 32371
Total Topics: 5478
Online Today: 70
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 54
Total: 55
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Disable upload progress!!  (Read 2159 times)
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« on: April 14, 2012, 10:33:51 am »

Can someone show me a screenshot of where this is meant to be please?

I am using SMF2.0.2 with the latest 2.1.3 version of this software and I cannot see the upload progress anywhere, even if I tick the box in settings which should disable and then untick it.

I have reverted back to using the default theme in case it's something to do with my custom theme, I have also enabled and checked that popups are allowed in case it's meant to be a popup.

I don't have any problems uploading files at all, from the smallest right up to 155MB (160MB is my limit for both 'Post Max Filesize' & 'Upload Max Filesize ' which I set in my php.ini), but what I do have a problem is that I cannot tell if the file is uploading or not or how far it is through the process.

Any help is much appreciated.

Thanks, Dave
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #1 on: April 15, 2012, 12:15:48 am »

It adds a counter of the number of bytes that have been uploaded so far.
Attached a screenshot of the area where it would appear.


Have thought about adding an option to use a real upload progress meter but requires a php extension which is why I didn't add it to begin with but I can do it.
Logged
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« Reply #2 on: April 15, 2012, 02:46:34 am »

Ok well all I see is what is seen in the image attached.

You have read what I put in the first post so where could the problem be that I'm not seeing that the same as your screenshot. I will try various options in the meantime like, disable my anti virus, and different browser etc to see if it helps, if I find anything I'll let you know
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #3 on: April 15, 2012, 05:10:06 pm »

It should be in the spot where it says "Unable to find server informations"
The basic byte counter using a file in the php upload directory to monitor the file upload progress.
Logged
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« Reply #4 on: April 16, 2012, 03:06:17 am »

It should be in the spot where it says "Unable to find server informations"
The basic byte counter using a file in the php upload directory to monitor the file upload progress.


Can you tell me where would the default 'php upload directory' be?

I did look at the code in 'whileuploading.php' and changed the part that mentions ''C:/WINDOWS/TEMP''. When I change from / to \ in the line that's when I get a line that says 'Uploading 134.78kb' (not exactly that amount) but it doesn't move, just stays on the same figure untill the upload is complete.
Do you think that line should be user edited to point to a specific folder?

Code:
<?php
// PUBLIC SETTINGS
//$tmpdir = 'C:/WINDOWS/TEMP'; // your PHP temporary upload folder ( without last slash )
// for this method is better set this folder in a dedicated one
// to be sure that in that folder there isn't any other php temporary file

Thanks for keep looking at this by the way it's good to know that you guy's do give support and it really does make all the difference to us users of your mods.

Dave
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #5 on: April 16, 2012, 10:57:36 am »

Create a test php file called  test.php
Inside it put
Code:
<?php
phpinfo
();
?>

Upload it to your site then run it via the browser and search for upload_tmp and should tell  you the path.
Logged
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« Reply #6 on: April 16, 2012, 01:05:55 pm »

Create a test php file called  test.php
Inside it put
Code:
<?php
phpinfo
();
?>

Upload it to your site then run it via the browser and search for upload_tmp and should tell  you the path.


Unfortunately for me it says 'No Value' and there is no other instance of that directory in the window. I have also tried the php info on my cPanel too but there is nothing about it in there.

I managed to change the directory info in 'whileuploading.php' to look for C:\php\upload_tmp and it actually worked...just once though....but it hasn't worked since.

It's very frustrating
Logged
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« Reply #7 on: April 16, 2012, 03:00:27 pm »

Create a test php file called  test.php
Inside it put
Code:
<?php
phpinfo
();
?>

Upload it to your site then run it via the browser and search for upload_tmp and should tell  you the path.


Unfortunately for me it says 'No Value' and there is no other instance of that directory in the window. I have also tried the php info on my cPanel too but there is nothing about it in there.

I managed to change the directory info in 'whileuploading.php' to look for C:\php\upload_tmp and it actually worked...just once though....but it hasn't worked since.

It's very frustrating



An update.

Ok I have now got it working 3 times in a row with different size files upto 55MB.

What did I do?

In 'whileuploading.php' I changed the line;

Code:
//$tmpdir = 'C:/WINDOWS/TEMP'; // your PHP temporary upload folder ( without last slash )

to

Code:
//$tmpdir = ''; // your PHP temporary upload folder ( without last slash )



by removing the directory location php looks for the default upload_tmp_dir.

I then found out that the 'memory_limit' must be bigger than the max_upload limit, by changing these the upload indicator now works

Thanks for the tips

Dave
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #8 on: April 16, 2012, 03:04:22 pm »

Great did you raise the memory limit in your php settings? Just wondering what settings you changed.
Logged
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« Reply #9 on: April 17, 2012, 01:46:07 am »

Great did you raise the memory limit in your php settings? Just wondering what settings you changed.

Yep that's what I did.

My web host doesn't normally let people have access to the php.ini but as I have 6 sites with them they let me have it in my root, so after reading a bit about php last night it was then I found out that the default 'memory_limit' is 128M so I just raised that to 170 which is 10M above my max upload.   
Logged
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« Reply #10 on: May 06, 2012, 12:58:18 pm »

Ok well this has failed again now for some reason and I have asked the host if they have changed settings and they say no. I also went and signed up with another host and the same happens there too...so it looks like I'm back to square one with no upload monitor.

It starts by saying 'Waiting a response from temp folder ...' and ends up 'Temp folder seems to be not valid.'

My problem is that with some of the files to be uploaded being over 100MB then my members on slow upload speeds really need to know how the upload is progressing.

I have checked the php.ini etc but still nothing...if I had hair I'd be pulling it out  Cry

Any ideas VB?
Logged
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« Reply #11 on: May 10, 2012, 01:57:48 pm »

Ok 4 days now since I posted the reply any chance of an answer as to what might have caused the sudden change?

One question of course is does anyone else suffer from the same problem?

Someone talk to me please   Wink
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #12 on: May 10, 2012, 02:00:19 pm »

Other than a hosting environment change or setting that is what would. cause it to stop working.

I might add a real progress bar but that takes time and is dependent on if your hosting/server supports it.
Logged
davejo
Jr. Member
**
Offline Offline

Posts: 52


View Profile
« Reply #13 on: May 10, 2012, 02:50:10 pm »



I might add a real progress bar but that takes time and is dependent on if your hosting/server supports it.

Thanks for the quick reply.

What would the host/server need in order for your idea to work VB?

 I can try and get ahead of the game if you let me know by asking the hosts or checking the phpinfo.

Thanks
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10995


View Profile
« Reply #14 on: May 10, 2012, 03:03:52 pm »

There is an uploadprogress extension check if you can set it up in your php.ini or there is a PECL extension.
I belive newer php versions have it built in.
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 03:27:16 pm]

[Today at 02:20:35 pm]

[Today at 02:11:10 pm]

[Today at 01:18:58 pm]

[Today at 12:22:02 am]

[Today at 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.276 seconds with 21 queries.