Upload applet (JUpload) : the easiest upload ! - Page 5 Upload applet (JUpload) : the easiest upload ! - Page 5
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Upload applet (JUpload) : the easiest upload !

Started by etienne_sf, April 28, 2007, 10:41:28 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

garbs

Hello,

Subject: Album Drop Down Menu Sort
Question: After Selecting a category, next step is to select an album from the drop down menu. Is there a way to have the drop down menu sort alphabetically? The sort order of albums in the album drop down menu appear in the order they were added to the gallery. I have a long list of albums in multiple categories and am adding new albums quite often. Sorting alphabetically will make selecting the correct album much easier.

Subject: Album Name, Album Description, Update Album Button and Create Album Button
Question: I would like to remove the ability to modify or create albums for any registered user other than the administrator . I still want the administrator to have full modification and creation of albums as is currently enabled. Is this possible?

searchforme

Quote from: etienne_sf on June 15, 2007, 07:56:43 PM
Hi,

  I just released the 2.5.1 version of the JUpload plugin for Coppermine.



so far it works like a charm for me its very charming.. i love it man.. great program. convienent. fast. & user friendly , a gallery can explode with pics with this program in no time..

thanks etienne_sf

etienne_sf

Quote from: searchforme on June 16, 2007, 06:44:41 PM
so far it works like a charm for me its very charming.. i love it man.. great program. convienent. fast. & user friendly , a gallery can explode with pics with this program in no time..

thanks etienne_sf

8)

Thanks for your comment !

Etienne

etienne_sf

Quote from: garbs on June 15, 2007, 09:28:38 PM
Subject: Album Drop Down Menu Sort
Question: After Selecting a category, next step is to select an album from the drop down menu. Is there a way to have the drop down menu sort alphabetically? The sort order of albums in the album drop down menu appear in the order they were added to the gallery. I have a long list of albums in multiple categories and am adding new albums quite often. Sorting alphabetically will make selecting the correct album much easier.

Good idea!

  I'll add in the next version

Quote from: garbs on June 15, 2007, 09:28:38 PM
Subject: Album Name, Album Description, Update Album Button and Create Album Button
Question: I would like to remove the ability to modify or create albums for any registered user other than the administrator . I still want the administrator to have full modification and creation of albums as is currently enabled. Is this possible?

This is already managed in Coppermine, and partially in JUPload:
- Go to the group configuration page (from the admin menu)
- Revoke the right for users other than the administrator to have their own gallery

  Then, in JUpload the user:
- May not create albums anymore
- May update the name/description of the album       :-\    Not sure it's really good. To be choosen.  Votes ?
- Will have a strange error after upload (unallowed page), see Iamatree messages.

The last one can be corrected in two ways:
a) The user will only see the uploaded pictures
b) The user can update the name and description of the pictures he just uploaded.

Etienne

garbs

#84
Thank you for your response. Also let me thank you for taking the time to program this wonderful mod.

I think something got lost in translation on one of my points.
Quote
- May update the name/description of the album           Not sure it's really good. To be choosen.  Votes ?

No vote needed. I do not want regular users to update the name/description. I agree with you that would be a bad idea.

***
My apology.
:-[ I had never logged in as a regular user (non-admin) and tried to change an album title. It blocks the change. That is what I wanted. I am sorry I asked about a feature that was already working as intended.


Vincs

Hello !
And what about the .htaccess working ?
I don't see it anymore on the "todo" list.
You don't want to make it anymore ?

etienne_sf

#86
Hi,

  Here is the 2.5.2 release. It's available here, as usual:
http://etienne.lesgauthier.fr/wiki/doku.php?id=jupload_coppermine_download_gb


Change log:

  • [Major] The user is now allowed to update the pictures title and description of pictures he uploaded, whether or not he may have personal galleries. This is conform to the standard upload behaviour (and different from my previous proposal).
  • [Minor] The 'update album' button is only visible if the user may have its own gallery. Like before, the current user can _not_ update public album's title or description if he is not administrator.
  • [Minor] The album list is now better sorted: it doesn't care about upper or lower case. But title beginning with an accent are sorted according to the current mysql charset, which seems to be wrong by default.

Vincs, I don't forget you. But there was some important change on the applet. I could not interfere with. FYI: the entry point to control the relevant HTTP return code already exists. It's just a matter of putting the (right) code in .

Etienne

etienne_sf

Hi,

  Here is the 2.5.3 release. It's available here, as usual:
http://etienne.lesgauthier.fr/wiki/doku.php?id=jupload_coppermine_download_gb


Change log:

  • Support of Basic HTTP Authentication. See the new basicHttpAuthentication config parameter.

Etienne

garbs

Re: Version 2.5.2
For your information: Here is my experience regarding sort order.
1. When a 'regular' user selects an album, the drop down menu sorts correctly.  :)
2. When the admin selects an album, the drop down menu sorts albums incorrectly. Sorts in order of album creation.  :(

****
In a different line of thought - I have a Feature request
Not sure if this would be a coppermine upload feature or a JUpload feature or both.
During the upload steps the user currently selects the 'album' from the drop-down-menu. Scrolling down the drop-down-menu list can be cumbersome because of a long list of albums. Here is what I would like as a feature. I would like to have a specific album selected in the dropdown menu. Here is an example of how I would like this implemented.

Lets say there are over 300 albums in different categories. And a user wants to upload photographs into album(xyz).
The user would browse to album(xyz) using their web browser. The user would then click on the 'JUpload' link. Then the 'album' drop-down-menu would have album(xyz) already selected from 'album' drop-down-menu. The user would still be able to scroll and select a different album from the drop-down-menu if so needed. This would save time from scrolling down a long list of albums. I feel like there has to be a way that JUpload would know what album/web page the user clicked the JUpload link from. If the user clicked on the JUpload link from any other page in the gallery that was not album specific, then the 'album' drop-down-menu would behave as it currently does now - by not preselecting an album in the drop-down-menu.

I hope this makes sense. Let me know if you need clarification. Thanks for your help.

Vincs

I've try the new 2.5.3 and I've got this debug message when I try to make it works under .htaccess
I've fulled in the field with my login:pass. (of the .htaccess)
And there is the debug :

12:14:44.875 [INFO] Debug level set to 0
12:14:45.015 [WARN] Invalid int value: , using default value: 0
12:14:45.015 [INFO] JUpload plugin for coppermine version 2.5.3
12:14:57.859 [INFO] Debug level set to 1
12:14:57.859 [ERROR] Upload arrêté avec erreur
12:14:57.859 [ERROR] wjhk.jupload2.exception.JUploadExceptionUploadFailed: Received HTTP status 401 Authorization Required
12:14:57.859 [ERROR] at wjhk.jupload2.policies.DefaultUploadPolicy.checkUploadSuccess(DefaultUploadPolicy.java:517)
12:14:57.859 [ERROR] at wjhk.jupload2.upload.DefaultFileUploadThread.doUpload(DefaultFileUploadThread.java:684)
12:14:57.859 [ERROR] at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:442)
12:14:57.859 [ERROR] wjhk.jupload2.exception.JUploadExceptionUploadFailed: Received HTTP status 401 Authorization Required
12:14:57.859 [ERROR] at wjhk.jupload2.policies.DefaultUploadPolicy.checkUploadSuccess(DefaultUploadPolicy.java:517)
12:14:57.859 [ERROR] at wjhk.jupload2.upload.DefaultFileUploadThread.doUpload(DefaultFileUploadThread.java:684)
12:14:57.859 [ERROR] at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:442)
12:15:02.218 [INFO] Debug level set to 100
12:15:02.218 [DEBUG] =======================================================================
12:15:02.218 [DEBUG] ======= Parameters managed by DefaultUploadPolicy
12:15:02.218 [INFO] JUpload applet, version 3.0.2b3 ($Revision: 224 $) ($Date: 2007-06-01 08:21:37 +0000 (ven., 01 juin 2007) $), available at http://jupload.sourceforge.net/
12:15:02.218 [DEBUG] Java version: 1.6.0
12:15:02.218 [DEBUG] Cookie: cpg143_data=YTo0OntzOjI6IklEIjtzOjMyOiIwZDA2NmI3ZWQ4YTMzN2UwZDU0MGZhNDE2M2Y0YjgzNSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo2OiJmcmVuY2giO3M6MzoibGl2IjthOjE6e2k6MDtzOjQ6IjEwMjgiO319; FRQSTR=19549310|19549310|19549310|19549310|19549310; fcbb39d482fff925ec93bd2d48866efd=bbc84b2ee574671f7f6e53227652aaea
12:15:02.218 [DEBUG] userAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
12:15:02.218 [DEBUG] List of all applet parameters:
12:15:02.218 [DEBUG]   language: fr
12:15:02.218 [DEBUG]   country:
12:15:02.218 [DEBUG] afterUploadURL: null
12:15:02.218 [DEBUG]   allowedFileExtensions: /jpg/jpeg/jpe/gif/png/bmp/jpc/jp2/jpx/jb2/swc/iff/asf/asx/mpg/mpeg/wmv/swf/avi/mov/mp3/midi/mid/wma/wav/ogg/psd/doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb/
12:15:02.218 [DEBUG] debug: 100
12:15:02.218 [DEBUG] filenameEncoding: null
12:15:02.218 [DEBUG] lang: fr
12:15:02.218 [DEBUG] maxChunkSize: 9223372036854775807
12:15:02.218 [INFO] maxFileSize  : 1024000
12:15:02.218 [DEBUG] nbFilesPerRequest: 1
12:15:02.218 [DEBUG] postURL: http://mpzportal.online.fr/index.php?file=jupload/jupload&action=add_picture
12:15:02.218 [DEBUG] serverProtocol: HTTP/1.1
12:15:02.218 [DEBUG] showLogWindow: false
12:15:02.218 [DEBUG] stringUploadSuccess: SUCCESS
12:15:02.218 [DEBUG] stringUploadError: ERROR: (.*)
12:15:02.218 [DEBUG] urlToSendErrorTo: http://mpzportal.online.fr/index.php?file=jupload/jupload&action=log_error
12:15:02.218 [DEBUG]
12:15:02.218 [DEBUG] ======= Parameters managed by PictureUploadPolicy
12:15:02.218 [DEBUG] highQualityPreview : true
12:15:02.218 [DEBUG] pictureCompressionQuality : 0.8
12:15:02.218 [DEBUG] maxPicWidth : 2048, maxPicHeight : 2048
12:15:02.218 [DEBUG] realMaxPicWidth : 2048, realMaxPicHeight : 2048
12:15:02.218 [DEBUG] storeBufferedImage : false
12:15:02.234 [DEBUG] targetPictureFormat : null
12:15:02.234 [DEBUG]
12:15:02.234 [DEBUG] ======= Parameters managed by CoppermineUploadPolicy
12:15:02.234 [DEBUG] albumId : 60
12:15:02.234 [DEBUG]
12:15:02.968 [DEBUG] Action : Envoyer
12:15:02.968 [DEBUG] Upload done by using the wjhk.jupload2.upload.FileUploadThreadHTTP class
12:15:02.968 [DEBUG] file 0: content=122378 bytes, getAdditionnalBytesForUpload=492 bytes
12:15:02.968 [DEBUG] chunkHttpParam: jupart=0&jufinal=1
12:15:02.968 [DEBUG] Cookie: cpg143_data=YTo0OntzOjI6IklEIjtzOjMyOiIwZDA2NmI3ZWQ4YTMzN2UwZDU0MGZhNDE2M2Y0YjgzNSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo2OiJmcmVuY2giO3M6MzoibGl2IjthOjE6e2k6MDtzOjQ6IjEwMjgiO319; FRQSTR=19549310|19549310|19549310|19549310|19549310; fcbb39d482fff925ec93bd2d48866efd=bbc84b2ee574671f7f6e53227652aaea
12:15:02.968 [DEBUG] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
12:15:02.968 [DEBUG] Using non SSL socket, direct connection
12:15:02.984 [DEBUG] Timer started
12:15:02.984 [DEBUG] PicturePanel.paint(): offscreenImage is null
12:15:03.015 [DEBUG] === main header (len=1054):
12:15:03.015 [DEBUG] POST /index.php?file=jupload/jupload&action=add_picture&album=60 HTTP/1.1\r\n
12:15:03.015 [DEBUG] Host: mpzportal.online.fr\r\n
12:15:03.015 [DEBUG] Accept: */*\r\n
12:15:03.015 [DEBUG] Connection: close\r\n
12:15:03.015 [DEBUG] Content-Type: multipart/form-data; boundary=---------------------------9qvh82jn1ow\r\n
12:15:03.015 [DEBUG] Content-Length: 123273\r\n
12:15:03.015 [DEBUG] Cookie: cpg143_data=YTo0OntzOjI6IklEIjtzOjMyOiIwZDA2NmI3ZWQ4YTMzN2UwZDU0MGZhNDE2M2Y0YjgzNSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo2OiJmcmVuY2giO3M6MzoibGl2IjthOjE6e2k6MDtzOjQ6IjEwMjgiO319; FRQSTR=19549310|19549310|19549310|19549310|19549310; fcbb39d482fff925ec93bd2d48866efd=bbc84b2ee574671f7f6e53227652aaea\r\n
12:15:03.015 [DEBUG] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4\r\n
12:15:03.015 [DEBUG] \r\n
12:15:03.015 [DEBUG] -----------------------------9qvh82jn1ow\r\n
12:15:03.015 [DEBUG] Content-Disposition: form-data; name="file"\r\n
12:15:03.015 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
12:15:03.015 [DEBUG] \r\n
12:15:03.015 [DEBUG] jupload/jupload\r\n
12:15:03.015 [DEBUG] -----------------------------9qvh82jn1ow\r\n
12:15:03.015 [DEBUG] Content-Disposition: form-data; name="album"\r\n
12:15:03.015 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
12:15:03.015 [DEBUG] \r\n
12:15:03.015 [DEBUG] 60\r\n
12:15:03.015 [DEBUG] -----------------------------9qvh82jn1ow\r\n
12:15:03.015 [DEBUG] Content-Disposition: form-data; name="action"\r\n
12:15:03.015 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
12:15:03.015 [DEBUG] \r\n
12:15:03.015 [DEBUG] add_picture\r\n
12:15:03.015 [DEBUG] === main header end
12:15:03.015 [DEBUG] --- fileheader start (len=288):
12:15:03.015 [DEBUG] -----------------------------9qvh82jn1ow\r\n
12:15:03.015 [DEBUG] Content-Disposition: form-data; name="mimetype"\r\n
12:15:03.015 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
12:15:03.015 [DEBUG] \r\n
12:15:03.015 [DEBUG] image/jpeg\r\n
12:15:03.015 [DEBUG] -----------------------------9qvh82jn1ow\r\n
12:15:03.015 [DEBUG] Content-Disposition: form-data; name="userpicture"; filename="concert 001.jpg"\r\n
12:15:03.015 [DEBUG] Content-Type: image/jpeg\r\n
12:15:03.015 [DEBUG] \r\n
12:15:03.015 [DEBUG] --- fileheader end
12:15:03.015 [DEBUG] in UploadFileData.uploadFile (amount:122378, getUploadLength(): 122378)
12:15:06.765 [DEBUG] PicturePanel.paint(): offscreenImage is null
12:15:06.859 [DEBUG] --- filetail start (len=204):
12:15:06.859 [DEBUG] \r\n
12:15:06.859 [DEBUG] -----------------------------9qvh82jn1ow\r\n
12:15:06.859 [DEBUG] Content-Disposition: form-data; name="md5sum"\r\n
12:15:06.859 [DEBUG] Content-Transfer-Encoding: 8bit\r\n
12:15:06.859 [DEBUG] \r\n
12:15:06.859 [DEBUG] 89a2575f9ec0846ecfea37bd604d0890\r\n
12:15:06.859 [DEBUG] -----------------------------9qvh82jn1ow--\r\n
12:15:06.875 [DEBUG] --- filetail end
12:15:07.625 [DEBUG] -------- Response Headers Start --------
12:15:07.625 [DEBUG] HTTP/1.1 401 Authorization Required
12:15:07.625 [DEBUG] Date: Wed, 20 Jun 2007 10:14:14 GMT
12:15:07.625 [DEBUG] Server: Apache/ProXad [May 15 2007 17:32:34]
12:15:07.625 [DEBUG] WWW-Authenticate: Basic realm="Que faites vous ici ? Hein Hein ?!"
12:15:07.625 [DEBUG] Connection: close
12:15:07.625 [DEBUG] Content-Type: text/html; charset=iso-8859-1
12:15:07.625 [DEBUG]
12:15:07.625 [DEBUG] --------- Response Headers End ---------
12:15:07.625 [DEBUG] HTTP status: 401 Authorization Required
12:15:07.625 [ERROR] Upload arrêté avec erreur
12:15:07.625 [ERROR] wjhk.jupload2.exception.JUploadExceptionUploadFailed: Received HTTP status 401 Authorization Required
12:15:07.625 [ERROR] at wjhk.jupload2.policies.DefaultUploadPolicy.checkUploadSuccess(DefaultUploadPolicy.java:517)
12:15:07.625 [ERROR] at wjhk.jupload2.upload.DefaultFileUploadThread.doUpload(DefaultFileUploadThread.java:684)
12:15:07.625 [ERROR] at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:442)
12:15:07.625 [DEBUG] -------- Response Body Start --------
12:15:07.625 [DEBUG] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
12:15:07.625 [DEBUG] <HTML><HEAD>
12:15:07.625 [DEBUG] <TITLE>401 Authorization Required</TITLE>
12:15:07.625 [DEBUG] </HEAD><BODY>
12:15:07.625 [DEBUG] <H1>Authorization Required</H1>
12:15:07.625 [DEBUG] This server could not verify that you
12:15:07.625 [DEBUG] are authorized to access the document
12:15:07.625 [DEBUG] requested.  Either you supplied the wrong
12:15:07.625 [DEBUG] credentials (e.g., bad password), or your
12:15:07.625 [DEBUG] browser doesn't understand how to supply
12:15:07.625 [DEBUG] the credentials required.<P>
12:15:07.625 [DEBUG] <ADDRESS>Apache/ProXad [May 15 2007 17:32:33] Server at mpzportal.online.fr Port 80</ADDRESS>
12:15:07.625 [DEBUG] </BODY></HTML>
12:15:07.625 [DEBUG] --------- Response Body End ---------
12:15:07.625 [ERROR] wjhk.jupload2.exception.JUploadExceptionUploadFailed: Received HTTP status 401 Authorization Required
12:15:07.625 [ERROR] at wjhk.jupload2.policies.DefaultUploadPolicy.checkUploadSuccess(DefaultUploadPolicy.java:517)
12:15:07.625 [ERROR] at wjhk.jupload2.upload.DefaultFileUploadThread.doUpload(DefaultFileUploadThread.java:684)
12:15:07.625 [ERROR] at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:442)
12:15:07.625 [DEBUG] FileUploadThread: within run().finally
12:15:08.890 [DEBUG] PicturePanel.paint(): offscreenImage is null
12:15:09.000 [DEBUG] JUploadPanel: after !fileUploadThread.isAlive()

etienne_sf

Quote from: Vincs on June 20, 2007, 12:16:12 PM
I've try the new 2.5.3 and I've got this debug message when I try to make it works under .htaccess
I've fulled in the field with my login:pass. (of the .htaccess)
And there is the debug :

12:15:02.218 [INFO] JUpload applet, version 3.0.2b3 ($Revision: 224 $) ($Date: 2007-06-01 08:21:37 +0000 (ven., 01 juin 2007) $), available at http://jupload.sourceforge.net/

You're using the good Coppermine plugin. But your navigator uses the old applet. The output should be:

version 3.0.2b3 [SVN-Rev: 289]
(not 224)

To correct this, you should stop and reload your browser. If it doesn't work, go the Java control panel, and check the temporary files.

Etienne

Vincs

yes !
Once again you're right ;)
That's working fine !
Thanks a lot !

P.S.: Now that I've recover my ADSL ligne the plug-in is working fine (I was in 12Ko/s in up and now 25Ko/s)

etienne_sf

Hi,

  Here is the 2.5.4 release. It's available here, as usual:
http://etienne.lesgauthier.fr/wiki/doku.php?id=jupload_coppermine_download_gb


Change log:

  • [Comfort] The JUpload link in the top menu is now 'contextual': when you're browsing a category (for an admin only) or an album, a click on the JUpload link will put this category and/or album as the current one for upload. Thanks to garbs for this good idea!
  • [Config param] Add of linkTitle and linkComment configuration parameter. These parameters allows the admin to override the text that will be displayed on the JUpload link button (and on its mouseover comment).

Etienne

MatthewSchenker

Etienne,
I installed this plug-in, but when I click on it, I get the following message:

You don't have permission to perform this operation.

If you're not connected, please login first



Then when I login, I get this:

You are already logged in ! 

Can you help me figure this out?

Thanks!

MatthewSchenker

Now I have an even bigger problem!!!

I uninstalled the JUpload plug-in, and now there is no "upload" button at all!

Can someone please help me fix this.

Thanks!

MatthewSchenker

Luckily, I was running this on a test site, so I just re-installed Coppermine.

I'd still like to have the JUpload feature, because it seems like a great idea.  Could someone please help me figure out how to get it running properly?

Thanks!

Sami

First of all thank you for such a good App

Etienne , it would be better to attach your new versions to initial post of this thread this way people find it better
I'm ready to help you if you have any problem with CPg's plugin API

[ot]
I'm going to use it under one of my php project , excellent work ;)
[/ot]
‍I don't answer to PM with support question
Please post your issue to related board

MatthewSchenker

For clarity, I should add the following details about my issues:
I'm running CPG version 1.4.10
I'm running JUpload version 2.5.4
Theme is Water drop

Again, this seems like a great feature and I'd love to know how to get it working on my gallery.

etienne_sf

Quote from: MatthewSchenker on June 27, 2007, 04:07:25 PM
Now I have an even bigger problem!!!

I uninstalled the JUpload plug-in, and now there is no "upload" button at all!

Can someone please help me fix this.

Thanks!

I think there is no link with JUpload. It seems you're connected as a user who may not upload pictures.

Etienne

MatthewSchenker

Etienne,
I toyed around with the permission settings and got this to work.  I've tested it on my gallery and it is great!  Thanks for developing this plug-in.

One quick question: do you know how to disable the old upload feature?

Thanks again for your great work!