111
Cifug
Re: ExtGallery Upload Error jpeg mime type
  • 2013/8/15 0:14

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Thanks mate your a legend



112
Cifug
Re: ExtGallery Upload Error jpeg mime type
  • 2013/8/14 23:03

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Mamba, don't forget to reverse the code you committed to SVN
Quote:
Mamba wrote:
I'll look into it sometime this week and we'll fix it once and for all.

That would be fantastic, thank you.

If it works using batch upload you would think the correct code is already there we just have to find it.

Quote:
Mamba wrote:
On the other hand who is still using .jpeg extensions? Why don't you just rename all the files to .jpg and you don't have any problems anymore

I hear what your saying, I have only encountered this just last week for the 1st time. Before I posted here on Xoops I went through every possible senario I could think of to get around it and can't find an efficient alternative.

1). Most of my users won't know how to convert files and probably don't care for it either.
2). I have tried to rename files on my phone and it only allows name changes excluding the file extension...cannot change the extension on my phone.
3). Don't want to have to use batch upload as my users can't access it and I can't use it from my phone.

I know, this may be a bit of work for something that may not be used as often as .jpg or .gif but I'm thinking that a lot of people are finding this error and just dismissing it and throwing it in the "too hard" basket.

Mamba, I know it's not much but I'll test it into the ground for you.

Cheers,
Marty.



113
Cifug
Re: ExtGallery Upload Error jpeg mime type
  • 2013/8/14 12:36

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Hi Mamba,
Quote:
Mamba wrote:
Go to the file /extgallery/photoUploader.php


Took me a while but I worked out that you meant /extgallery/class/photoUploader.php

Your fix works perfectly for .jpeg but now .jpg has the error

I reverted back to the original file and back to where I was in the beginning and tried to do a batch upload with a .jpg and a .jpeg together and they both worked fine with no issues.

I'm thinking we're almost there

If I look in my local photo folder on my PC I notice that both .jpg and .jpeg files are associated (by the file type column) as JPEG file types. I think this is why if we change the code from
IMAGETYPE_JPEG => 'jpg',

to
IMAGETYPE_JPEG => 'jpeg'IMAGETYPE_JPG => 'jpg',

the .jpeg worked and .jpg failed. Because the server is looking for
IMAGETYPE_JPEG =>

So, I tried
IMAGETYPE_JPEG => 'jpeg'IMAGETYPE_JPEG => 'jpg',

and
IMAGETYPE_JPEG => 'jpeg','jpg',

these all failed.

What I did find was that no matter what combination I had, if this
IMAGETYPE_JPEG => 'jpeg',

is in there the .jpeg will always work and the .jpg will always fail. The only time .jpg works is with
IMAGETYPE_JPEG => 'jpg',


So I thought to go back to basics and try
IMAGETYPE_JPG => 'jpg',

and neither .jpg or .jpeg worked they both failed.

Of course I'm only guessing. But thought I should pass on my 4 hour attempt at trouble shooting if not for any other reason than to give you guys a laugh

So...on with the show!! What else can we do??

Marty.



114
Cifug
Re: ExtGallery Upload Error jpeg mime type
  • 2013/8/14 7:50

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Ok, woohoo batch upload does work Almost got it sorted...

The photo is also converted from .jpeg to .jpg which is interesting Is this intended? Can we not keep the same file format/extension?

However, I still cannot upload a photo with .jpeg extension via the standard upload form on user or admin side and I suspect that no-one else can either.

The reason I would like this feature to work apart from the fact that it should, is I can't use the "batch upload" feature when using my phone, and even if I could it would be adding a whole other step and software to upload a photo. Would be a royal PITA...

Any ideas?

Cheers,
Marty.



115
Cifug
Re: ExtGallery Upload Error jpeg mime type
  • 2013/8/13 22:42

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Quote:

Mamba wrote:
[quote]and I can import it in the batch


ahh, I am having this error in the standard upload form on user side and admin side. I haven't tried batch upload yet. I will try batch upload when I get home this afternoon.

in the meantime can you try standard form user and admin side please to see if you have same problem?

thanks,
Marty.



116
Cifug
Re: ExtGallery Upload Error jpeg mime type
  • 2013/8/13 9:01

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Quote:

Mamba wrote:
I don't know what to tell you - I tested on mine and it working.

I have committed my files to XOOPS SVN, so see if you've missed something.

If somebody else could test it, please let me know. If I've missed something, then we need to fix it.


Hi Mamba, just re-edited the files you mentioned above with no luck.

Checked your SVN link (by the way your link is to extcal not extgallery) and downloaded the correct relevant files from extgallery trunk SVN and uploaded them and still no luck

Are you sure that's all you changed? Should I download the entire module?

Best regards,
Marty.




117
Cifug
Re: ExtGallery Upload Error jpeg mime type
  • 2013/8/12 21:40

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Hi Mamba, made the changes you suggested and still receiving the same error.

I tried updating module and cleared site cache and browser cache also

Cheers,
Marty



118
Cifug
ExtGallery Upload Error jpeg mime type
  • 2013/8/12 0:40

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Hi guys, I tried to upload a photo with the file extension ".jpeg" and I get the below error:

Error during upload Suspicious image upload refused


I don't get this error for .jpg or .gif

I'm thinking that maybe the .jpeg mime type is not allowed for some reason. Is there a setting somewhere where you can allow/disallow certain mime types?

My config is:
XOOPS Version - XOOPS 2.5.6
Extgallery - 1.11
PHP Version - 5.3.26
mySQL Version - 5.0.96-community

Cheers,
Marty



119
Cifug
Re: Extgallery nightmares...
  • 2013/3/27 23:00

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


Ok, now it's not working and I'm not sure it was fully working when I replied above ^^

I changed the memory_limit to 64M and file_max_upload to 250M and restarted apache and now I get this error:
Error during upload :
Unable to move uploaded file


I've now gone back to default php.ini, restarted apache cleared browser and website cache and I still have the same error above with any picture small or large.

Any ideas what has happened?

Cheers,
Marty.



120
Cifug
Re: Mastop Go2 1.02 Final and Xoops 2.5.5 or 2.5.6
  • 2013/3/25 10:53

  • Cifug

  • Quite a regular

  • Posts: 208

  • Since: 2007/12/13


What exactly does this module do?




TopTop
« 1 ... 9 10 11 (12) 13 14 15 ... 19 »



Login

Who's Online

115 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 115


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits