Ignore:
Timestamp:
2005-08-01T14:31:31+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now uploads collection images to the server, if using remote building.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r10345 r10374  
    4444import org.greenstone.gatherer.gui.OpenCollectionDialog;
    4545import org.greenstone.gatherer.gui.WarningDialog;
     46import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    4647import org.greenstone.gatherer.util.StaticStrings;
    4748
     
    500501                // Copy the file
    501502                try {
    502                 Gatherer.f_man.getQueue().copyFile(file, new File(images_folder, file.getName()), null);
     503                File collection_image_file = new File(images_folder, file.getName());
     504                Gatherer.f_man.getQueue().copyFile(file, collection_image_file, null);
     505
     506                // If we're using a remote Greenstone server, upload the image
     507                if (Gatherer.isGsdlRemote) {
     508                    RemoteGreenstoneServer.uploadCollectionFile(collection_image_file);
     509                }
    503510                }
    504511                catch(Exception exception) {
Note: See TracChangeset for help on using the changeset viewer.