Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picture upload fails with HTC Sensation/HTC One SV/HTC One SV LTE #251

Closed
fst-at opened this issue Aug 28, 2013 · 50 comments
Closed

Picture upload fails with HTC Sensation/HTC One SV/HTC One SV LTE #251

fst-at opened this issue Aug 28, 2013 · 50 comments

Comments

@fst-at
Copy link

fst-at commented Aug 28, 2013

Hi,

may I draw your attention to the following posting http://forum.owncloud.org/viewtopic.php?f=24&t=12828 which describes in more detail my attempts to upload pictures, especially jpg, to my ownCloud using either an HTC Sensation, HTC One SV and HTC One SV LTE.

The topic of not working immediate uploads is already discussed in some issues.

What faszinates me most is the fact, that upload works after renaming pictures form *.jpg to *.txt for example.

I put a ZIP-File with tests I made and a conversation with ownCloud.org (anonymized) on Skydrive: http://sdrv.ms/17meKLI

Kind regards,

Franz

@davivel
Copy link
Contributor

davivel commented Sep 24, 2013

Hi, @fstrohmeier.

I don't think the problem is in your device, seems similiar to #166. Could you repeat some of your tests and check the logs of the server side ?

@andreasoc
Copy link

i have the same problem with my xperia z,
I experienced an issue for uploading photos: sometimes it happens that uploading from loading error but the photo is loaded correctly, sometimes it happens that instead of error and the picture is not loaded.
Xperia Z
Android 4.2

Server
4.5.13

@andreasoc
Copy link

cattura

@mxmrtl
Copy link

mxmrtl commented Sep 30, 2013

Hello.
I've got the same problem, but not only with pictures: my Android client (installed on my HTC One M7) gives the same error "Caricamento non riuscito" (I'm italian, sorry...) with ALL files, except for some .xml files...

HTC One M7 - Android 4.2.2
Server Linux - Php 5.3.27 - OwnCloud 5.0.10

@fst-at
Copy link
Author

fst-at commented Sep 30, 2013

Hi, davivel (and all),
I did some additional tries but got no entry at all in the log files on the server (Info, Debug etc.). The only log entries were after reinstalling ownCloud on my HTC and connecting:

Debug core include path for class "OCA_FirstRunWizard\Config" starts with "apps/" 30.09.2013 18:06
Debug core Adding user backend instance of OC_User_Database. 30.09.2013 18:06
Debug core include path for class "OCA_FirstRunWizard\Config" starts with "apps/" 30.09.2013 18:05
Debug core Adding user backend instance of OC_User_Database. 30.09.2013 18:05

Sorry, but I don't think it is the server as upload via desktop works fine and, as I described in the documents released on my Skydrive, I even can upload pics from my smartphone after renaming e.g. mypic.jpg to mypic.txt using e.g. Total Commander. After renaming it with the web-interface to my server, displaying and download to desktop end android work fine (the picture is then correclty displayed on the smartphone).

I also tried to find someone at HTC for this problem, but without success. For me it seems, after having read lots of postings in different forums, that there is something "special" in the implementation of Android by HTC.

Nevertheless, I would appreciate a solution very much as I would like to get rid of cloud services I can't control.

Is there a way to create some log-files on my smartphone? I looked for them in the .data folder an the ownCloud folder without any success.

Kind Regards,

Franz

@davivel
Copy link
Contributor

davivel commented Oct 14, 2013

@fstrohmeier , do you mean that uploads through the ownCloud Android app work fine when you change the name of the files?

Did you try to include in your ownCloud desktop app some file with the same name of the failed uploads in your mobile? Could it be a problem with some specific character in file names?

@andreasoc
Copy link

there aren't specific character; i've tried to upload image with different size (from 3 MB to 80 KB), owncloud upload the files correctly but receive the message error upload ever.
thanks

@davivel
Copy link
Contributor

davivel commented Oct 15, 2013

@andreasoc , the file is correct in the server? May the error be of a different file? Instant uploads are retried automatically in some conditions, some of them could remain as 'pending to upload' in the local database, but fail once and another if was removed from the local storage.

@andreasoc
Copy link

Yes! the file is correct in the server but receive the error message ever...

@masensio
Copy link

@fstrohmeier @andreasoc @mxmrtl, Could you please install the new ownCloud Android Client (1.5.0) and let us know if this fix your problems?

Thanks in advance.

@andreasoc
Copy link

i've tried to upload image..fail :(

@mxmrtl
Copy link

mxmrtl commented Nov 21, 2013

No, it doesn't.

Massimo Artico


Inviato da HTC

----- Reply message -----
Da: "masensio" notifications@github.com
A: "owncloud/android" android@noreply.github.com
Cc: "mxmrtl" massimo.artico@gmail.com
Oggetto: [android] Picture upload fails with HTC Sensation/HTC One SV/HTC One SV LTE (#251)
Data: gio, nov 21, 2013 15:30

@fstrohmeier @andreasoc @mxmrtl, Could you please install the new ownCloud Android Client (1.5.0) and let us know if this fix your problems?

Thanks in advance.


Reply to this email directly or view it on GitHub.

@amjiphone
Copy link

I have an AT&T HTC One and am also having an issue when trying to upload photos from my android device. I just purchased the application and setup a server but I can not upload photos that are already on my phone. I would love to be able to use the Auto-sync feature eventually, but I wanted to make sure I could at least upload the pictures I have already taken. This feature is VERY important to me in case I lose my phone or it were to be stolen.

@fst-at
Copy link
Author

fst-at commented Dec 27, 2013

@davivel Sorry for the delayed reply: The desktop app works fine. I only encounter problems with the mobile app on different HTC phones

If I try to upload a *.jpg-File in the Android ownCloud app (either via browsing the file system or via option File of other apps via the album), I get an error. After renaming the same file (without special characters in it, these are photos taken by the mobile phone, having the default file naming) using the app TotalCommander eg from 2013-12-14 001.jpg to 2013-12-14 001.txt, the upload works correctly (!!!).

I afterwards can rename it in the ownCloud app back to .jpg and it can be displayed, downloaded e.g.(on the mobile and on the desktop app).

Therefore, I suppose, Android, especially on HTC, has some kind of "lock" on the jpg files. Neverthelesse, the "sharing" of jpgs works fine with facebook, twitter, skydrive etc. pp. on the mobile.

@fst-at fst-at closed this as completed Dec 27, 2013
@fst-at fst-at reopened this Dec 27, 2013
@fst-at
Copy link
Author

fst-at commented Dec 27, 2013

Sorry for the unintended closing.

@fst-at
Copy link
Author

fst-at commented Dec 27, 2013

Error also encountered in a totally new HTC One which I got for Christmas: Same behaviour!

@fst-at
Copy link
Author

fst-at commented Dec 27, 2013

@masensio Sorry, did not fix the problem, I have installed 1.5.2 now.

@fst-at
Copy link
Author

fst-at commented Jan 2, 2014

Third Party app: I am testing now Cloudii (https://play.google.com/store/apps/details?id=com.getcloudii.android ) for a few days and my most wanted feature (automatic upload and therefore backup of my photos to my ownCloud-Server) works perfect.

@davivel
Copy link
Contributor

davivel commented Jan 8, 2014

Hi, @fstrohmeier . What is the version of your server side? Are the images greater than 1MB? Is the problem happening only with new pictures, or is it the same when you upload a JPG file using the 'Upload' action in the action bar?

Thanks.

@fst-at
Copy link
Author

fst-at commented Jan 8, 2014

Hi, @davivel,
the server version is ownCloud 5.0.5.
But I don't think it is a server problem, as e.g. the app Cloudii works fine with all types of documents on my smartphone and even copes with immediate upload to ownClowd after taking photos.

kr
fst

@davivel
Copy link
Contributor

davivel commented Jan 8, 2014

The mobile ownCloud apps use a modified version of WebDAV to make uploads. Both the configuration and the version (due to known bugs) of the server side are very important factors.

I would try to update server to a newer version, something past 5.0.12 (I think 5.0.14 or 5.0.14a is the last released 5 version at this moment).

What about the other questions? (Sorry, I edited the post after sending it)

@fst-at
Copy link
Author

fst-at commented Jan 8, 2014

I just upgraded the server side to 6.0.0a -> didn't change anything. Same quite useless ("Upload failed") error messge in the app (which I reinstalled on my smartphone as well).

Other questions I didn't have but I would like to repeat that the upload of all file types with the exception of *.jpg works fine with the app and also jpgs can be uploaded if they are renamed to e.g. .txt before.

I will continue to use ownClowd via the web interface and the desktop app, but I will wait a few months before I give the Android app another try.

kr
fst

@davivel
Copy link
Contributor

davivel commented Jan 8, 2014

Sorry, I meant the other questions I made you in my previous post about the size of the pictures and about uploading JPG files with JPG extension through the 'upload' option in the main menu.

@fst-at
Copy link
Author

fst-at commented Jan 9, 2014

@davivel
Hi,
I did a lot of test with jpg of about 300K to 2M (please notice that I use the German version, so the menu paths are re-translated back to English)

Original name *.jpg:
Main menu: Upload file -> Files -> Selection -> FAIL
Main menu: Upload file -> Contents of other Apps -> Select e.g. Album -> Selection -> FAIL

Original name *.mp3:
Main menu: Upload file -> Files -> Selection -> OK
Main menu: Upload file -> Contents of other Apps -> Select e.g. Music -> Selection -> OK

Rename *.jpg to *.txt via TotalCommander
Main menu: Upload file -> Files -> Selection -> OK
Main menu: Upload file -> Contents of other Apps -> not tested as no suitable app on the smartphone
Download file again, rename, watch: OK
Rename file on server side in the web-interface back to *.jpg, open in web-interface etc: OK

Maybe you can provide me with some developer-version which collects a very detailled log. As I am very interested in ownCloud, I would install it, repeat my tests and send you the logs.

kr
Franz

@davivel
Copy link
Contributor

davivel commented Jan 16, 2014

Do you have any other DAV client in your device (WebDAV or CalDaV) connected to the same ownCloud account?

@mxmrtl
Copy link

mxmrtl commented Jan 16, 2014

Yes, many i.e. Solid Explorer
Same problem...

Massimo Artico


Inviato da HTC

----- Reply message -----
Da: "David A. Velasco" notifications@github.com
A: "owncloud/android" android@noreply.github.com
Cc: "mxmrtl" massimo.artico@gmail.com
Oggetto: [android] Picture upload fails with HTC Sensation/HTC One SV/HTC One SV LTE (#251)
Data: gio, gen 16, 2014 17:53

Do you have any other DAV client in your device (WebDAV or CalDaV) connected to the same ownCloud account?


Reply to this email directly or view it on GitHub.

@amjiphone
Copy link

I do not. I downloaded the app and just enabled the auto upload feature. Didn't work. I also tried manually uploading a pic. Also didn't work.

@davivel
Copy link
Contributor

davivel commented Jan 16, 2014

Ok. If any of you want, can create a test account in your servers and send the credentials to apps@owncloud.com, so that we can inspect a bit more. Specially @amjiphone , since we have an HTC One to test.

@amjiphone
Copy link

User created and emailed off. I also added it as an admin just in case you wanted to review settings or what not. There are no files in the software yet so feel free to change anything you need too.

@davivel
Copy link
Contributor

davivel commented Jan 16, 2014

Oh, I forgot... please, include in the subject 'Android issue #251'.

@amjiphone , no need you resend your email, will search by the time.

@davivel
Copy link
Contributor

davivel commented Jan 17, 2014

@amjiphone , I can't reach your server. Seems it's not well configured. Could you check it, please?

EDIT: seems there is some problem with the connection between the web server and the database

@fst-at
Copy link
Author

fst-at commented Jan 17, 2014

@davivel The only client I use on my HTC One is Cloudii, but it was installed AFTER the failing attempts to upload pictures via the ownCloud App. How this client works internally, I do not know but I logon by user and password and have never entered the WebDAV link displayed in the Administrator section on the Server side.

I will provide you with a test account and send you a mail.

@amjiphone
Copy link

@davivel I apologize. Apparently my MySQL server had crashed overnight. Please try again now.

@davivel
Copy link
Contributor

davivel commented Jan 21, 2014

@amjiphone, your server seems to have problems wider than what @fstrohmeier describes at the start of this issue. It's very unresponsive, and uploads are not working not just for images, but for any kind of file, both in the Android app and through the web interface. Please, open a different issue to track your problems with uploads and describe them as extensively as possible.

@fstrohmeier , uploads to your server are failing for different kind of images, not just JPG files. The server is rejecting these uploads due to lack of permissions, I don't know the exact reason. I will check our test servers to find out if it's a bug in the server side or just a problem in your configuration. On the while, could you check the global setup of your web server? Maybe there is some kind of restriction on the upload of images that we are not taking into account, due to other web apps in your server or some misconfiguration.

@fst-at
Copy link
Author

fst-at commented Jan 21, 2014

@davivel: I have to confirm that at the moment there seem to be problems with the server. As it is a hosted package, I need some time to clarify that so I would like to ask you to postpone the tests in the meantime.

Under the following link, you can find the proof, that upload worked fine with another app in the past: http://sdrv.ms/1dPVxaM (sorry for using a Skydrive-Link for sharing, but I won't publish my private server's address until I am finished with all work).

Kind regards,

Franz

@davivel
Copy link
Contributor

davivel commented Jan 21, 2014

Thanks for the update, @fstrohmeier . I'll wait for you tell me more.

@amjiphone
Copy link

@davivel I will open a new ticket per your suggestion. Could you please let me know what time in EDT you are doing your testing? My servers take a beating at certain times during the day due to other services running on the "server". I am running all of this out of my house and I have no troubles uploading through the web or the Mac client. I am more than willing to shut them all off for a day or so so you can do the testing .

I am not experiencing any other issues when I upload though. If you are seeing them I would not know what is causing it. I will investigate though based on your findings.

@amjiphone
Copy link

I worked with @davivel in issue #350 and my instant uploads are now working.

@davivel
Copy link
Contributor

davivel commented Jan 23, 2014

Great to read it @amjiphone .

Let's wait what else can tell us @fstrohmeier about his problem

@fst-at
Copy link
Author

fst-at commented Jan 24, 2014

@davivel Dear David,
please continue your tests on the test account. I had successful uploads with another product. Please see http://sdrv.ms/1jHTG97 for details.
Kind regards,
Franz

@amjiphone
Copy link

Good Day Gentlemen,
I wanted to get in here and throw a little more information into the mix. After the work I was done with @davivel, I did some more testing. I got all of my firewall services back online and I am able to upload. However, I am noticing that when I am on the AT&T 4G network the uploads still fail. If I connect to WiFi the uploads begin working again. Food for thought. I am unsure if my cell network is dropping the connection for some reason on .jpg uploads,

@davivel
Copy link
Contributor

davivel commented Feb 13, 2014

O_o

If we need to take care of network providers I will need a gun...

@davivel
Copy link
Contributor

davivel commented Feb 26, 2016

@fstrohmeier , is this still a problem for you?

Thanks in advance.

@fst-at
Copy link
Author

fst-at commented Feb 29, 2016

@davivel

Hello,
unfortunately, it still fails (in most cases) and shows some very interesting and strange (new) behaviour.

I just installed the latest ownCloud app to my smartphone (I reset the smartphone to factory settings a few weeks ago).

After the first tries, I was happy, but then I found out the things being explained in the screenshot enclosed.

The error occured as follows: Upload finishes with 100 % but immediately afterwards it says (retranslated to English!): You have no authorization for that folder.

I also have to repeat that to my opinion, the reason unfortunately is HTC because I had a problem with another app (my most important one). Discussions in the produder's forum showed that others had the similar problem and with the exception of one, all were HTC users. Since I reset the factory settings of the phone, also this app works again. The HTC helpdesk was of no help, no real solution and when I sent a link to the discussion, I got the answer: We don't read forum postings concerning our products...

May I also repeat my offer: If you would like an account on my server again, please give me an info. Also if you want me to install some "developer version" of the ownCloud app that provides you with more detailled information in a log file, don't hesitate to contact me.

Kind regards,

Franz
_docu owncloud

@davivel
Copy link
Contributor

davivel commented Sep 2, 2016

Hi, @fstrohmeier . Could you give another try with the just-released version 2.1.1 of the ownCloud app? You will need to go into "Settings" to select your camera folder in the "Instant uploads" section, that seems to be in "DCIM/100MEDIA" instead of our default "DCIM/Camera".

Thanks!

@davigonz
Copy link
Contributor

davigonz commented Feb 2, 2018

Hi @fstrohmeier , could you give a new try with the 2.6.0 app we released yesterday? It includes the new Camera uploads feature, which will replace Instant Uploads and will upload automatically your pictures and videos in 15 minutes at most.

@fst-at
Copy link
Author

fst-at commented Feb 7, 2018 via email

@davigonz
Copy link
Contributor

davigonz commented Jan 3, 2019

Hi @fstrohmeier , any update on this?

@fst-at
Copy link
Author

fst-at commented Jan 3, 2019

Hi, @davigonz, sorry no update as I am not using the app anymore.

Kind regards,
Franz

@davigonz
Copy link
Contributor

davigonz commented Jan 3, 2019

Let's close this then, if there's any other issue about that topic, please reopen

@davigonz davigonz closed this as completed Jan 3, 2019
hannesa2 pushed a commit that referenced this issue Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants